It’s sex, not gender. Gender is for Spanish nouns.
It's a pet peave of mine that the term "gender", used to define a property of nouns in many languages, is so commonly applied to sexual identity (male or female). There are actually only three genders: masculine, feminine, and neuter.