gender-detection icon indicating copy to clipboard operation
gender-detection copied to clipboard

Feature Request: Consider local preferences?

Open thebarty opened this issue 8 years ago • 1 comments

Hi there,

first of all: thanks for this package! It is already helping me a lot!

I just stumbled upon a wierd edge-case with the names "Heinz", “Gerd" and "Gert"....

All three names are MALE in german, BUT this package spits them out "unisex" or even female ("Gerd").

So I researched a bit more and saw that the same name can have different genders in different countries.

A great resource is http://www.namepedia.org/en/firstname/Gert_(3440), where you can clearly see in what countries the name has which meaning.

It would be soooo cool, to have another api-function like gender(name, locale) so p.e. I can say gender('Gerd', 'de') and will get the result 'male', which is now correct, because Gerd lives in germany.

I guess in order to get the information out of namepedia.org we'd have to scrape it via npm x-ray.

Anyone else interested in having this feature?

thebarty avatar Nov 04 '17 00:11 thebarty

Hi @thebarty, yes it is interesting and I just started a sketch about it... If I have time to work or someone want to help me to add this feature, It should be great :-)

davidemiceli avatar Dec 08 '17 20:12 davidemiceli