TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Genderize.io determines the gender of a first name

21 pointsby duvanderalmost 12 years ago

32 comments

davidualmost 12 years ago
Pro tip: Don&#x27;t try to be &quot;too smart&quot; or clever when talking to your users.<p>Being wrong here is so much more tacky than either asking for gender if you need it, or just writing in a gender neutral way.<p>&quot;I&#x27;m sorry we were wrong, but our computer determined you have a girl&#x27;s name. If you change your name, it&#x27;ll work now.&quot;
评论 #6180065 未加载
评论 #6179870 未加载
评论 #6179859 未加载
skskskalmost 12 years ago
It seems to be broken, everything is returning male (or null)<p><pre><code> curl http:&#x2F;&#x2F;api.genderize.io?name=joe {&quot;joe&quot;:&quot;male&quot;} curl http:&#x2F;&#x2F;api.genderize.io?name=jo {&quot;jo&quot;:&quot;male&quot;} curl http:&#x2F;&#x2F;api.genderize.io?name=jamie {&quot;jamie&quot;:&quot;male&quot;} curl http:&#x2F;&#x2F;api.genderize.io?name=jaime {&quot;jaime&quot;:&quot;male&quot;} curl http:&#x2F;&#x2F;api.genderize.io?name=joan {&quot;joan&quot;:&quot;male&quot;} curl http:&#x2F;&#x2F;api.genderize.io?name=kelly {&quot;kelly&quot;:&quot;male&quot;} curl http:&#x2F;&#x2F;api.genderize.io?name=lucy {&quot;lucy&quot;:null}</code></pre>
评论 #6183582 未加载
评论 #6179921 未加载
评论 #6180113 未加载
NoPiecealmost 12 years ago
For people interested in other tools, there is a command line gender verification tool and database:<p><a href="http://www.autohotkey.com/board/topic/20260-gender-verification-by-forename-cmd-line-tool-db/" rel="nofollow">http:&#x2F;&#x2F;www.autohotkey.com&#x2F;board&#x2F;topic&#x2F;20260-gender-verificat...</a><p>and a Ruby gam that is built on the above data:<p><a href="https://github.com/bmuller/sexmachine" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bmuller&#x2F;sexmachine</a>
评论 #6181978 未加载
评论 #6179874 未加载
评论 #6180053 未加载
chintanalmost 12 years ago
Neat!<p>It would be nice to get some sort of &quot;confidence level&quot; - <a href="http://api.genderize.io/?name=jackie" rel="nofollow">http:&#x2F;&#x2F;api.genderize.io&#x2F;?name=jackie</a>
评论 #6183602 未加载
评论 #6179687 未加载
评论 #6195076 未加载
ronaldxalmost 12 years ago
It&#x27;s strange to believe you can effectively determine gender from a first name - even when concentrating on Anglo-centric names, as this appears to.<p>How is the data generated? By hand? I can imagine this might be somewhat useful if it gave a non-binary result.<p>&quot;Paris&quot; is &quot;male&quot;.
评论 #6183608 未加载
mickeypalmost 12 years ago
Interesting, but I question its utility, particularly if a name is ambiguous - like &quot;Alex&quot;. Also, I tried it with my sister&#x27;s name, Nanna, and it returned &quot;null.&quot; Apparently she&#x27;s neuter.
ds9almost 12 years ago
On my first try I got an erroneous result on a non-Anglo name: <a href="http://api.genderize.io/?name=krishna" rel="nofollow">http:&#x2F;&#x2F;api.genderize.io&#x2F;?name=krishna</a> returned &quot;male&quot;. In fact god names are unisex; I&#x27;ve met a female Krishna.<p>Edit: and &quot;null&quot; on Vishnu. I didn&#x27;t see on the page whether this is supposed to extend beyond Anglo-American culture.<p>And &quot;kyle&quot; came up &quot;male&quot;, tho I can report a female Kyle. Whoever is populating the database may be underestimating gender&#x2F;naming trends.
nollidgealmost 12 years ago
Other commenters are already demonstrating that the error rate is way too high to be useful. If you need a user&#x27;s gender (and you probably don&#x27;t), just ask them.
评论 #6179800 未加载
rajingtonalmost 12 years ago
It seems like he deleted my comment from his site&#x27;s disqus (it&#x27;s his right) but I rewrote the exact same API in a couple of lines using sexmachine and ruby (I had been meaning to try Sinatra anyway). The source is here: <a href="https://github.com/rajington/genderizer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rajington&#x2F;genderizer</a><p>Hosted on heroku&#x27;s free tier here are some more interesting examples:<p>Basic: <a href="http://genderizer.herokuapp.com/?name=peter" rel="nofollow">http:&#x2F;&#x2F;genderizer.herokuapp.com&#x2F;?name=peter</a><p><pre><code> {&quot;peter&quot;:&quot;male&quot;} </code></pre> &quot;Mostly&quot; Response: <a href="http://genderizer.herokuapp.com/?name=Jamie" rel="nofollow">http:&#x2F;&#x2F;genderizer.herokuapp.com&#x2F;?name=Jamie</a><p><pre><code> {&quot;Jamie&quot;:&quot;mostly_female&quot;} </code></pre> Country (helps with guesses, default USA): <a href="http://genderizer.herokuapp.com/?name=Jamie&amp;country=great_britain" rel="nofollow">http:&#x2F;&#x2F;genderizer.herokuapp.com&#x2F;?name=Jamie&amp;country=great_br...</a><p><pre><code> {&quot;Jamie&quot;:&quot;mostly_male&quot;}</code></pre>
klousalmost 12 years ago
I&#x27;ve thought about this before, you also should be able to get a somewhat accurate estimate of the median age of a group of attendees to an event based on the first names alone. See Baby Name Wizard Voyager tool for visualizations of first name occurences since 1900s: <a href="http://www.babynamewizard.com/voyager" rel="nofollow">http:&#x2F;&#x2F;www.babynamewizard.com&#x2F;voyager</a>
评论 #6185012 未加载
Stromgrenalmost 12 years ago
Hello.<p>I&#x27;m the author of genderize.io. At the time of your comments i was slowly getting this API up and running. A lot of sudden traffic made that a little hard :)<p>At the time, i was utilizing a few lists of officially approved names from a few European countries. We have those in Denmark, where i&#x27;m from, among a few other countries. This had led me to believe that most countries had lists like this and i was planning to add them as i went along.<p>I since change my approach, moving from the lists to large datasets of user profiles from social networks. This has given me the chance to update the API, adding probabilistic guesses along with the ability to add localization based filters.<p>My datasets are not that huge yet, but they&#x27;re constantly growing.<p>Just wanted to say thanks for all the feedback i found in here and give a heads up on the update :)
ape4almost 12 years ago
There has been a perl module that does this for a while <a href="http://search.cpan.org/~edaly/Text-GenderFromName-0.32/GenderFromName.pm" rel="nofollow">http:&#x2F;&#x2F;search.cpan.org&#x2F;~edaly&#x2F;Text-GenderFromName-0.32&#x2F;Gende...</a> I see you can add names to its &quot;dictionary&quot; and it give a probability.
appsappsappsalmost 12 years ago
First two tries:<p><pre><code> ~ % curl &quot;http:&#x2F;&#x2F;api.genderize.io?name=pat&quot; {&quot;pat&quot;:null}% </code></pre> Shouldn&#x27;t that be &quot;unisex&quot;?<p><pre><code> ~ % curl &quot;http:&#x2F;&#x2F;api.genderize.io?name=patricia&quot; {&quot;patricia&quot;:null}% </code></pre> Hm...
broheealmost 12 years ago
Completely worthless without a national&#x2F;ethnic hint.<p>E.g. &quot;Jean&quot; will be male if the first name of a French person, while likely female in the US.
评论 #6179994 未加载
azurelogicalmost 12 years ago
It tells me that my daughter&#x27;s name, Avery, is male, yet it is the 13th most popular name for baby girls right now. Someone needs an updated data set.
random42almost 12 years ago
How well does it compare to <a href="https://nltk.googlecode.com/svn/trunk/doc/book/ch06.html" rel="nofollow">https:&#x2F;&#x2F;nltk.googlecode.com&#x2F;svn&#x2F;trunk&#x2F;doc&#x2F;book&#x2F;ch06.html</a>. If the genderize.io folks are listening, can you look at providing some benchmark&#x2F;test set to evaluate the efficiency of the underlying algorithm?
iamdsalmost 12 years ago
I haven&#x27;t tried the api yet, but the example on the home page says that &quot;Lois&quot; is a female name - when in fact, in the 1930s it was quite a popular male name with about 70 boys born each year named lois. Checkout <a href="http://www.namemeababy.com" rel="nofollow">http:&#x2F;&#x2F;www.namemeababy.com</a> to see the full stats.
erehwebalmost 12 years ago
Worked on gender-determination for a project for a client in a U.S. male-dominated industry. Baby name gender frequencies by birth year are available online. One interesting wrinkle - can apply simple Bayesian technique - e.g. even if Pat is 50-50 male-female in population at large, firefighter Pat is more likely to be a man.
swengwalmost 12 years ago
If you&#x27;re interested in doing this yourself, the book associated with Python&#x27;s Natural Language Toolkit has a pretty good introduction to identifying gender in the chapter on text classification [1].<p>[1] <a href="http://nltk.org/book/ch06.html" rel="nofollow">http:&#x2F;&#x2F;nltk.org&#x2F;book&#x2F;ch06.html</a>
omarchowdhuryalmost 12 years ago
{&quot;ashley&quot;:&quot;male&quot;}
fiatmoneyalmost 12 years ago
Also helpful is:<p><a href="https://github.com/bmuller/sexmachine" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bmuller&#x2F;sexmachine</a><p>which uses a multilingual dictionary, that accounts for names that cross gender in different countries.
评论 #6179963 未加载
RyanMcGrealalmost 12 years ago
I sanity-checked the service with some common unisex names. Here are the results I got:<p>Unisex: Robin, Alex<p>Female: Kelsey, Carol<p>Male: Leslie, Jodi, Jody, Frankie, Kelly, Marion, Casey, Jamie, Jordan, Mackenzie<p>Null: Pat, Taylor, Dale
评论 #6195093 未加载
morriganalmost 12 years ago
If this were for data data analysis then it would have a probability attached.What you have to ask yourself is gender really needed for your application? If not it&#x27;s best to just avoid it; using guesses is the best way to data corruption.
rossrileyalmost 12 years ago
There&#x27;s a PECL extension for PHP that claims to provide this too: <a href="http://php.net/gender" rel="nofollow">http:&#x2F;&#x2F;php.net&#x2F;gender</a><p>Not tested it on too many challenging tasks but it seems to work well too.
jimehalmost 12 years ago
<a href="http://api.genderize.io/?name=Αλεξανδρος" rel="nofollow">http:&#x2F;&#x2F;api.genderize.io&#x2F;?name=Αλεξανδρος</a><p>This throws an error and gives us a very pretty stack-trace :)
hademalmost 12 years ago
I couldn&#x27;t find an API, but some might be interested in GenderChecker [0].<p>[0] <a href="http://www.genderchecker.com" rel="nofollow">http:&#x2F;&#x2F;www.genderchecker.com</a>
sgustardalmost 12 years ago
Goes to a synology login page: <a href="http://www.genderize.io" rel="nofollow">http:&#x2F;&#x2F;www.genderize.io</a>
lotsofcowsalmost 12 years ago
Apparently I&#x27;m &quot;null&quot;. I&#x27;ll assume that&#x27;s not an attempt to be deliberately offensive. :-)
galesalmost 12 years ago
I wonder what dataset is being used behind the scenes. Tried &quot;Roberta&quot; and it returned &quot;null&quot;.
zjgreenalmost 12 years ago
<a href="http://api.genderize.io/?name=pat" rel="nofollow">http:&#x2F;&#x2F;api.genderize.io&#x2F;?name=pat</a>
tareqakalmost 12 years ago
This sort of thing sounds like something Facebook would be very good at doing using Open Graph.
xutopiaalmost 12 years ago
How does that site work? It mentions nothing about pricing?