Skip to main content

Detecting the gender of Persian names with automatic cleaning of input

Project description

NameGenderFA

Detecting the gender of Persian names with automatic cleaning of input


Example:

from NameGenderFA import NameGenderFA

gd=NameGenderFA.Gender_detector()

name='علی123! عزیزی'

gender, cleaned_name=gd.detect(name)


output: ('male', 'علی')


gender: male/female/None

cleaned_name: cleaned name

Gender_detector.perfixes: removes some perfixes like "سید", you can set it manually

Gender_detector.replace_chars: replace some characters like 'ي' to 'ی' or 'السادات' to ''

also punctuations and numbers will be remove.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NameGenderFA-0.0.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

NameGenderFA-0.0.3-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page