detect gender from mappings