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)
npm i gender-detection-from-name
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); // female
en
, it
, es
, fr
, de
, tr
npm test
npm run lint
Feel free to contribute to this project to add more names in different languages.