Check any Australian numbers
Project description
gender
=======================================
Get gender from name and email address
What does it do?
----------------
Suppose you have someone's name and need to find out whether this person is a female (male). The name might come with an email address as it's often the case when you deal with customer records. This package finds the gender for you.
Key Advantages
--------------
- Very simple to use
- Accepts a single string or a list of strings as input
- Relies on a dataset of 130,000+ unique names
- Covers hypocorisms (English only at this time)
- Makes use of a person’s email address (if available) via searching for names and grammatical gender words in the prefix
- Doesn’t care if the input has bad formatting
Installation
------------
.. code-block:: console
$ pip3 install gender
Quickstart
----------
Import and initialise the GenderDetector class:
.. code-block:: console
from gender import GenderDetector
gd = GenderDetector()
Then use its *gender* method:
.. code-block:: pycon
gd.gender('jaeden collins')
Note that you can give it a string with some rubbish in it, like
.. code-block:: pycon
gd.gender('dr.. arian ChiA ,%%%achia58@hotmail.com')
Having an email address could make difference. Suppose that you want to figure out gender of someone whose description is
.. code-block:: pycon
customer_info = 'b w roberts -- roboking@yahoo.co.uk'
Both the initials and surname don’t tell you whether this is a male or a female. However, the email prefix robo*king* does look like it’s probably a male because the word *king* always points to a male.
Also note that you can feed a **list** into the **gender** method in which case you will get a list of identified genders as an output:
.. code-block:: pycon
gd.gender(['steve risotto', 'ana kowalski'])
>>>['m', 'f']
=======================================
Get gender from name and email address
What does it do?
----------------
Suppose you have someone's name and need to find out whether this person is a female (male). The name might come with an email address as it's often the case when you deal with customer records. This package finds the gender for you.
Key Advantages
--------------
- Very simple to use
- Accepts a single string or a list of strings as input
- Relies on a dataset of 130,000+ unique names
- Covers hypocorisms (English only at this time)
- Makes use of a person’s email address (if available) via searching for names and grammatical gender words in the prefix
- Doesn’t care if the input has bad formatting
Installation
------------
.. code-block:: console
$ pip3 install gender
Quickstart
----------
Import and initialise the GenderDetector class:
.. code-block:: console
from gender import GenderDetector
gd = GenderDetector()
Then use its *gender* method:
.. code-block:: pycon
gd.gender('jaeden collins')
Note that you can give it a string with some rubbish in it, like
.. code-block:: pycon
gd.gender('dr.. arian ChiA ,%%%achia58@hotmail.com')
Having an email address could make difference. Suppose that you want to figure out gender of someone whose description is
.. code-block:: pycon
customer_info = 'b w roberts -- roboking@yahoo.co.uk'
Both the initials and surname don’t tell you whether this is a male or a female. However, the email prefix robo*king* does look like it’s probably a male because the word *king* always points to a male.
Also note that you can feed a **list** into the **gender** method in which case you will get a list of identified genders as an output:
.. code-block:: pycon
gd.gender(['steve risotto', 'ana kowalski'])
>>>['m', 'f']
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
Built Distribution
Close
Hashes for phonenumberchecker-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b7607c80010729ee864487753b1949d26c4e2c06181a50bbda887f7c918e5f5 |
|
MD5 | 0ec69318ba58f68f11c039a11c20d9b3 |
|
BLAKE2b-256 | 1e79cafc5187016c7b240faaea72d3aa139c7ec9fffe2cfeaa10f69caf87cf7b |