1.11.2 • Published 10 months ago
gender-detection-from-name v1.11.2
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, all languages are considered. (issue #92)
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 genderTR = getGender('Radife', 'tr');
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(genderTR); // female
console.log(gender); // femaleSupported languages
en, it, es, fr, de, tr
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.11.2
10 months ago
1.11.1
1 year ago
1.11.0
1 year ago
1.10.0
1 year ago
1.9.0
2 years ago
1.8.0
2 years ago
1.7.4
3 years ago
1.7.3
4 years ago
1.7.2
4 years ago
1.7.1
4 years ago
1.7.0
4 years ago
1.6.0
4 years ago
1.5.1
4 years ago
2.0.0-beta
5 years ago
1.5.0
5 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.0
7 years ago
1.1.0
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago
