https://github.com/pariazar/persian-gender-detection
package to detect gender by Persian first name.
https://github.com/pariazar/persian-gender-detection
Last synced: over 1 year ago
JSON representation
package to detect gender by Persian first name.
- Host: GitHub
- URL: https://github.com/pariazar/persian-gender-detection
- Owner: pariazar
- License: mit
- Created: 2021-07-29T10:56:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-29T11:28:41.000Z (almost 5 years ago)
- Last Synced: 2025-01-07T20:34:30.990Z (over 1 year ago)
- Language: Python
- Size: 93.8 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Persian gender detection
A simple Python package to detect gender by Persian first name. (With more than 25K names)
## Installation
first install requirements with below command:
``` pip install -r requirements.txt ```
then intall PGD from pypip:
``` pip install PGD ```
## Example:
```
import pgd
print(pgd.detectGender('علی'))
print(pgd.detectGender('حآمد'))
print(pgd.detectGender('ندا'))
print(pgd.detectGender('مهدي'))
print(pgd.detectGender('سارا'))
print(pgd.detectGender('می5نا'))
print(pgd.detectGender('مری97145م'))
```
That would result in:
```
male
male
female
male
female
female
female
```