Gender Detection
Description
A node.js module to determine a person's gender based on his/her first name.
It works also for many languages other than english, supporting international names, using an own datasource of 40.000 records that can be extended. This module is able to clean the text, detecting gender from dirty or unclear names.
Installation
$ npm install gender-detection
Example
// Require gender detection moduleconst gender = ; let g; // Use it to detect the gender:g = gender;// "male" g = gender;// "female" g = gender// "unknown" // It works also with unclean or dirty names:g = gender;// "male" g = gender;// "female" // Extract the first nameconst first_name = gender;// "mario"
Unit tests
npm test