I spent months searching for some secret code before I realized that common sense has nothing to do with it. Hysteria, psychosis, torture, depression: I was told that if something is unpleasant it's probably feminine. This encouraged me, but the theory was blown by such masculine nouns as murder, toothache, and rollerblade. I have no problem learning the words themselves, it's the sexes that trip me up and refuse to stick.
