Add helper function to extract gender