A simple NPM package to detect gender by Persian first name. (With more than 6K names)
Install with NPM:
$ npm install persian-gender-detection
With yarn:
$ yarn add persian-gender-detection
// Require module
const { getGender } = require('persian-gender-detection');
// Detect gender
getGender(' عــــلی '); // MALE
getGender('نرگـــ😉ــس'); // FEMALE
getGender('حســ😎ــن'); // MALE
getGender('۱۲۳۹۹۳محمدعلی123'); // MALE
getGender('۱۲۳مهناز۱۲۳'); // FEMALE
Feel free to submit issues and enhancement requests.
Please feel free to contribute names database with your kindly pull requests.
- Add fingilish support
Licensed under GPL-3.0