gender-prediction
Version:
Predicts gender based on given first name
25 lines (15 loc) • 594 B
Markdown
This module predicts whether given first name is male or female.
The prediction algorithm is based on naive Bayes classifier from [natural](https://github.com/NaturalNode/natural#classifiers).
The data set used for training is from the nlp corpora of [Carnegie Mellon University](http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/nlp/corpora/)
npm install gender-prediction
var gender = require ("gender-prediction");
var name = 'Lilly'
```javascript
predictName(name, result => {
console.log(result);
});
```
License
MIT