@xdanangelxoqenpm/odio-nobis-quae
v1.0.0
Published
[![](https://github.com/davideviolante/@xdanangelxoqenpm/odio-nobis-quae/workflows/Node.js%20CI/badge.svg)](https://github.com/xdanangelxoqenpm/odio-nobis-quae/actions?query=workflow%3A"Node.js+CI") [![Coverage Status](https://coveralls.io/repos/github/Da
Downloads
25
Maintainers
Keywords
Readme
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 @xdanangelxoqenpm/odio-nobis-quae
Example
const { getGender } = require('@xdanangelxoqenpm/odio-nobis-quae');
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.