Every study shows that women are more likely to attract this kind of thing on the internet, including a study where the researchers made up nicknames and posts, and monitored the responses. You might consider changing your profile from female to neutral-sounding, to avoid attracting trolls. Please don't take this as a criticism, by the way - everyone has different ways of dealing with unpleasantness, and not disclosing if you're male or female is just one of them. (I know that some feminists will get up in arms about that, but I support the pragmatic approach, of avoiding trouble.)
Another defence mechanism is to resist the temptation to see any website, including SO, as a community to which one belongs.
ReRegarding the grammar - please keep on correcting it. I correct grammar and spelling mistakes whenever I see them, as they really damage my ability to concentrate on what the poster is trying to say. And if I am posting in a foreign language, I really appreciate people correcting my grammar, as it's the best way to learn. There's no way that SO can be a quality resource if it's not written correctly.