persian-gender-detection

2.1.0 • Public • Published

Persian Gender Detection

A simple NPM package to detect gender by Persian first name. (With more than 6K names)

Installation

Install with NPM:

$ npm install persian-gender-detection

With yarn:

$ yarn add persian-gender-detection

Example

// Require module
const { getGender } = require('persian-gender-detection');

// Detect gender
getGender('  عــــلی  ');         // MALE
getGender('نرگـــ😉ــس');         // FEMALE
getGender('حســ😎ــن');          // MALE
getGender('۱۲۳۹۹۳محمدعلی123');  // MALE
getGender('۱۲۳مهناز۱۲۳');       // FEMALE

Issues

Feel free to submit issues and enhancement requests.

Contributing

Please feel free to contribute names database with your kindly pull requests.

TODO

  • [ ] Add fingilish support

License

Licensed under GPL-3.0

Readme

Keywords

Package Sidebar

Install

npm i persian-gender-detection

Weekly Downloads

15

Version

2.1.0

License

GPL-3.0

Unpacked Size

418 kB

Total Files

12

Last publish

Collaborators

  • peymanslh