Live data from Hacker News

A better approach to determining gender from a first name

genderize.io

11–20 of 63 posts

Re: A better approach to determining gender from a first name

#11
post #6

Please just don't. There is no point antagonising people by guessing information about them wrongly - particularly if it's something they've become sensitised to by it occurring frequently. If you need to know someone's gender (and largely, you don't), then ask them.

Think outside the box. This has many other use cases.

This is not thinking outside the box. This is painting the interior of the box with refractive ink and calling it innovative.

Re: A better approach to determining gender from a first name

#12
I guess it needs a better training DB, it returns {"gender": null} for not-so-common names in languages other than English...

http://api.genderize.io/?name=eloi&language_id=ca

http://api.genderize.io/?name=tomeu&language_id=ca

http://api.genderize.io/?name=rigoberta&language_id=es

http://api.genderize.io/?name=presentaci%C3%B3n&language_id=...

Credit for distinguishing between names in languages, though! Joan returns female in English, but male in Catalan.

Re: A better approach to determining gender from a first name

#13

Please just don't. There is no point antagonising people by guessing information about them wrongly - particularly if it's something they've become sensitised to by it occurring frequently. If you need to know someone's gender (and largely, you don't), then ask them.

It also assumes two distinct genders which is a fallacy.

Re: A better approach to determining gender from a first name

#14
post #7

Interesting from a machine-learning perspective - but this strikes me as a solution looking for a problem. If any service needs to know gender (and I'm having a hard time thinking of times you NEED to know gender - dating sites?) - why not just ask? surely in a situation where you're reliant on having accurate gender information, guessing from $firstname and getting it wrong is worse than asking.

An analogous problem is automatic language and country detection. It's convenient when it works transparently, but can be a huge hassle when it guesses wrong.

Re: A better approach to determining gender from a first name

#16
post #13

Please just don't. There is no point antagonising people by guessing information about them wrongly - particularly if it's something they've become sensitised to by it occurring frequently. If you need to know someone's gender (and largely, you don't), then ask them.

It also assumes two distinct genders which is a fallacy.

Sure, but that doesn't preclude it from being a useful metric for something like ad targeting.

Re: A better approach to determining gender from a first name

#17
post #8
post #7

Interesting from a machine-learning perspective - but this strikes me as a solution looking for a problem. If any service needs to know gender (and I'm having a hard time thinking of times you NEED to know gender - dating sites?) - why not just ask? surely in a situation where you're reliant on having accurate gender information, guessing from $firstname and getting it wrong is worse than asking.

Why not just ask? More form fields means less conversions. Using the service one can ask for the gender later during the registration process only if confidence in the sex detection is lower then a defined threshold.

You don't need to know the data for most things. The times you do (dating sites etc.), you need it to be accurate and should ask explicitly.

Re: A better approach to determining gender from a first name

#18

I'm sure this is interesting from a statistical point of view, but does the tech scene really need yet more reinforcement of a binary view of gender?

You want an enlightened view of the complexity of sensitively handling transgender people, non-binary genders and other gender and sexual minorities?

This is Hacker News. Such enlightened thought is frowned on by our new brogrammer overlords. Here's your beer.

Re: A better approach to determining gender from a first name

#19

The "probability" return value appears to be a straight average; it returns 1 for "Peter", which is almost guaranteed to be incorrect - all it takes is a single female Peter, anywhere on the planet. A better approach, in the absence of more complex models, would be to use Laplace's sunrise formula.

You're kidding right? Guessing gender for a "show hacker news" with a .io domain is a clear case of "done is better than perfect."

Re: A better approach to determining gender from a first name

#20
I like this from a usability standpoint. Just as some forms auto-fill the city/state based on the zip (and might get it wrong), this enables something similar. And it might get it wrong, but if your mom gave you a girl's name* blame her.

It also seems accurate:

Pat = about 50/50 David = All man Jessica = All woman

Also, wrt to "binary gender identity" complaints, are we all college freshmen here?

* my own name (Nord) sucks and gave a gender of null. Spent my whole life being called Nerd, Nora, etc. I'm not flipping out.

Post reply on HN