davidemiceli / gender-detection Goto Github PK
View Code? Open in Web Editor NEWDetermine a person's gender based on his/her first name.
License: GNU General Public License v3.0
Determine a person's gender based on his/her first name.
License: GNU General Public License v3.0
So I found other lists of names, would be cool to merge the list but still use this library for its initial list and all the normalization.
Could add a gender.add(name, gender, lang='en')
function and/or gender.setMale(name, lang='en')
/gender.setFemale(name, lang='en')
If you can do the normalization to the incoming names, it would be less performance but great because other lists are not normalized (lower case, no weird characters, etc)
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?
Do you know what is the Accuracy if the library while computing the gender?
It'd make sense sometimes to store the "canonical" firstName that lead to the gender returned as well, it's trivial to expose this function in case it wants to be used in conjunction
E.g: "80% probability that this is a male"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.