Ah, ITALY, my favorite gender
Genuine question. Why does a program need to know the user’s gender? (I’m asking in general, not in this particular case). Just use gender neutral pronouns to refer to the user, or, better yet, don’t talk to me at all!
Aside from niche things like targeted ads and gendered health tracking and stuff.
Gender PHP extension is a port of the gender.c program originally written by Joerg Michael. The main purpose is to find out the gender of firstnames. The current database contains >40000 firstnames from 54 countries.
For anyone curious but not curious enough to go digging around.
Slightly less stupid than the list of constants would imply.
Only slightly though. It hardly seems practical to try and infer gender from names, in a way where it can’t be obtained through historical records, or the user.
For a given individual, sure. If you’re trying to do some statistics over a whole group that you have no other record for, it could be useful.
Sounds like those statistics output would the heavily biased by whatever process you were using to turn names into genders. In short, a bad idea.
“Since the dataset isn’t 100% perfectly annotated for analysis, we should give up the whole project entirely.”