API:UnitSex

Get the gender of a unit.

Parameter

 * unit
 * String - the UnitID (e.g. "player", "target", "party1", "raid1", etc..)

Returns

 * genderID
 * Integer - returns 0 for male and 1 for female, 2 for elite mobs and above 2 for boss mobs
 * Note: if the specified unit doesn't exist, it returns 0 rather than nil.

Example
Display the gender of the player in a language neutral way