1.9.0 • Published 2 months ago
gender-detection-from-name v1.9.0
Gender detection from name
Library to detect the gender of a first name. An optional language parameter can be specified to improve the detection, for example: Andrea in EN is female, in IT is male. If no language is specified, EN has priority.
Install
npm i gender-detection-from-name
Example
const { getGender } = require('gender-detection-from-name');
const genderEN = getGender('Andrea', 'en');
const genderIT = getGender('Andrea', 'it');
const genderES = getGender('Andrea', 'es');
const genderFR = getGender('Andrea', 'fr');
const genderDE = getGender('Andrea', 'de');
const gender = getGender('Jennifer');
console.log(genderEN); // female
console.log(genderIT); // male
console.log(genderES); // male
console.log(genderFR); // male
console.log(genderDE); // female
console.log(gender); // female
Supported languages
en
, it
, es
, fr
, de
Run tests
npm test
Run lint
npm run lint
Contribute
Feel free to contribute to this project to add more names in different languages.
Author
1.9.0
2 months ago
1.8.0
9 months ago
1.7.4
2 years ago
1.7.3
2 years ago
1.7.2
2 years ago
1.7.1
2 years ago
1.7.0
2 years ago
1.6.0
3 years ago
1.5.1
3 years ago
2.0.0-beta
3 years ago
1.5.0
4 years ago
1.4.1
5 years ago
1.4.0
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago