An open API service indexing awesome lists of open source software.

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.

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

```