Skip to content

peymanslh/persian-gender-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Persian names gender detector

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors