API:UnitRace

Get the race of a unit.
local race = UnitRace(unit)
== Parameter ==
:;unit
::String - the UnitID (e.g. "player", "target", "party1", "raid1", etc..) 
== Returns ==
:;genderID
::String - returns Human or Elf
::Note: if the specified unit doesn't exist, it returns nil.
== Example ==
Display the race of the player
DEFAULT_CHAT_FRAME:AddMessage(UnitRace("player"))
UnitRace