this post was submitted on 22 Jun 2023
57 points (90.1% liked)
Programmer Humor
32453 readers
782 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
These are good but none are compatible with the php gender class.
A weirdly limited selection, too. Like, what if you're a Somali?
So I found a twitter thread talking about this, and the documentation page seems to indicate it's used as a lookup for a name to indicate the most likely gender of that name is. https://pecl.php.net/package/gender/0.6.0
https://twitter.com/Foone/status/1343285800369147904
The country inclusion is odd, but then again apple also does this with oddly specific (to someone living in the west) family relations that exist in other countries/cultural regions. https://developer.apple.com/documentation/contacts/cnlabelcontactrelationeldercousinmotherssiblingsdaughterorfatherssistersdaughter
That's neat. I don't suppose there's an anthropology community yet?
I didn't see one in the global search.
From the documentation, it appears that the country codes are for localization presumbly of the names of the genders.
Edit: Ah, others already said this (didn't refresh and kbin doesn't update this automatically). Refer to above.
My gender is
ERROR_IN_NAME
😎What in the hell is KAZAKH_USBEK?
Kazakhstan / Uzbekistan. Weird that they're considered the same country by this class