API UnitSex

Returns the gender of the unit.
 gender = UnitSex(unit)
==Arguments==
:;unit: : UnitId
==Returns==
:;sex:
{| class="sortable darktable zebra col1-center" style="margin-left: 3.9em"
! ID !! Gender
|-
| 1 || Neutrum / Unknown
|-
| 2 || Male
|-
| 3 || Female
|}
==Example==
 local genders = {"unknown", "male", "female"}
 if UnitExists("target") then
 	print("The target is "..genders[UnitSex("target")])
 end
==Details==
* Most non-humanoid mobs/creatures will appear as Neutrum/Unknown.
* Player characters currently appear as either Male or Female.
==Patch changes==
* At an unknown time after 1.10, sheeped targets stopped returning 'unknown' and began providing the 'true' gender
==See also==
* ()