TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: An API for gender classification

18 点作者 heynk超过 11 年前

20 条评论

sambeau超过 11 年前
The only reliable way to find out someone&#x27;s gender is to ask them what gender they currently think they are. There are more than two genders and an individual&#x27;s gender can change with time.<p>A better strategy all-round would to be ask yourself whether you need to know someone&#x27;s gender. I can think of very few legitimate reasons to know and record a user&#x27;s gender and many of them can be dealt with by simply asking them what they&#x27;d like to be referred as, perhaps in more than one scenario.
评论 #7176352 未加载
onion2k超过 11 年前
While it&#x27;s a quite interesting coding task to write a classifier, for the overwhelming majority of applications you simply don&#x27;t need to know a user&#x27;s gender. Making it a public API is a bad thing.<p>Developers have a horrible tendency to gather as much data on someone as possible, everything they&#x27;re willing to give in fact, for the simple reason of &quot;just in case we need it later&quot;. It&#x27;s far, <i>far</i> better to gather as little as possible and build something that simply doesn&#x27;t need to know specifics. If we build things that are ambiguous, unspecific for age, gender, race, nationality, etc then the world will be a better and more inclusive place. Paradoxical as it seems, more privacy actually leads to a more integrated society. That is universally a good thing (in my opinion, obv.).
splitbrain超过 11 年前
Without a location parameter this is pretty useless. Andrea for example is a male name in Spain and Italy as far as I know.<p>Also this: <a href="http://www.cscyphers.com/blog/2012/06/28/falsehoods-programmers-believe-about-gender/" rel="nofollow">http:&#x2F;&#x2F;www.cscyphers.com&#x2F;blog&#x2F;2012&#x2F;06&#x2F;28&#x2F;falsehoods-programm...</a>
评论 #7176565 未加载
评论 #7176366 未加载
joshfraser超过 11 年前
I started searching for the most gender ambiguous names I could think of like &quot;Jesse&quot;, &quot;Alex&quot;, &quot;Erin&quot;, etc. The best one I&#x27;ve found so far is &quot;Angel&quot; at 51.1% male.
评论 #7176418 未加载
评论 #7176293 未加载
评论 #7176021 未加载
评论 #7176304 未加载
评论 #7176165 未加载
评论 #7176360 未加载
评论 #7176474 未加载
sheraz超过 11 年前
I think it is important to make a distinction between gender and sex [1]. The link below is a makes a pretty good distinction between the two.<p>&quot;Sex&quot; refers to the biological and physiological characteristics that define men and women.<p>&quot;Gender&quot; refers to the socially constructed roles, behaviours, activities, and attributes that a given society considers appropriate for men and women.<p>[1]- <a href="http://www.who.int/gender/whatisgender/en/" rel="nofollow">http:&#x2F;&#x2F;www.who.int&#x2F;gender&#x2F;whatisgender&#x2F;en&#x2F;</a>
评论 #7176719 未加载
hnriot超过 11 年前
why bother with a naive bayes classifier, why not just use the dictionary, when it matches the percentage is simple the ratio of the genders? I don&#x27;t see the need for a classifier, I was hoping it was going to do something clever like guess the gender of a document&#x27;s author.
bwp超过 11 年前
Microsoft is unknown, Linux is male, and Apple is female.
评论 #7176281 未加载
levlandau超过 11 年前
Neat. Should probably call out that it&#x27;s an API for &quot;gender classification of english names&quot;. Did you build this mostly for learning&#x2F;personal purposes?
sdegutis超过 11 年前
&quot;Permelia&quot;[1] is definitely a girl&#x27;s name[2].<p>[1]: <a href="http://blog.xkcd.com/2014/01/31/the-baby-name-wizard/" rel="nofollow">http:&#x2F;&#x2F;blog.xkcd.com&#x2F;2014&#x2F;01&#x2F;31&#x2F;the-baby-name-wizard&#x2F;</a><p>[2]: <a href="http://gender.hankstoever.com/classify/Permelia" rel="nofollow">http:&#x2F;&#x2F;gender.hankstoever.com&#x2F;classify&#x2F;Permelia</a>
nl超过 11 年前
I spend a lot of time choosing gender neutral names for story based scenarios in proposals (the joys of corporate work).<p><a href="http://en.wikipedia.org/wiki/Unisex_name" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Unisex_name</a> has been mentioned elsewhere, but I&#x27;ve found it pretty useful.<p>Unlike a lot of people here, I don&#x27;t think there is anything wrong with an API like this. It&#x27;s true that it isn&#x27;t culturally neutral, but there are times when any piece of information is useful.
jpsim超过 11 年前
<p><pre><code> if probability == &quot;59.369936&quot; { probability = &quot;?&quot; gender = &quot;unknown&quot; }</code></pre>
mastersk3超过 11 年前
This is great fun, could you embed share options? I could trigger a share-war amongst my friends!
robinjfisher超过 11 年前
My name has a 50.444139% chance of being female.<p>In the present case, the API is, unfortunately, incorrect.
评论 #7176067 未加载
bnegreve超过 11 年前
What&#x27;s the training set?
karanbhangui超过 11 年前
Apparently Karan is female :(
blueskin_超过 11 年前
I get ~70% for a name I&#x27;ve never even heard of being used for a female.
abe238超过 11 年前
Bah I much rather use this app as it&#x27;s much faster: <a href="http://apps.microsoft.com/windows/app/gndr/a062944e-744e-4955-b685-f3197faa2560" rel="nofollow">http:&#x2F;&#x2F;apps.microsoft.com&#x2F;windows&#x2F;app&#x2F;gndr&#x2F;a062944e-744e-495...</a>
ozh超过 11 年前
Fun, although you might want to state it applies to the US only
评论 #7176596 未加载
shobhitjain26超过 11 年前
my Name is unknown . <a href="http://gender.hankstoever.com/classify/shobhit" rel="nofollow">http:&#x2F;&#x2F;gender.hankstoever.com&#x2F;classify&#x2F;shobhit</a>
kirchhoff超过 11 年前
John - 57.3% ?
评论 #7176159 未加载
评论 #7176210 未加载