Gender

Gender is one of the traits generated by npcGenerator. Gender is one of the base traits, meaning it does not depend on any other trait.

This trait is used to generate more traits, such as Class, to be able to differentiate between "sorcerer" and "sorceress". In our philosophy it should not be used to block certain genders from having certain classes, unless absolutely necessary. (A race dictating only males or females of said race can be a given class.)

Gender is also used to generate the (first) Name of an npc, and is used in motivations, as well as features. For example, pregnancy related motivations or features should not appear on male npcs.

Genders
There are three genders defined in npcGenerator: These are not distributed uniformly. Males and females have a far higher chance than androgynous npcs.
 * Male
 * Female
 * Androgynous

Androgynous npcs will have either a male, or female name, but in all other instances relating to him or her, will indeed be "him or her", or the different variants of that defined in "xhe", "xim" and "xir".

Functionality
Gender is defined in modules/gender.lua, and provides the following functions: In addition, core/util.lua defined some additional functionality to deal with genders, namely: It is however likely that these functions will eventually be replaced if the Substitution Sequences feature will be implemented.
 * generateRandomGender
 * fixGender
 * xhe
 * xim
 * xir