Metadata-Version: 2.1
Name: infer-gender
Version: 0.2.0.0
Summary: Infer gender from the Indian first name or full name
Home-page: https://github.com/bnriiitb/infer-gender
Author: Nagaraju Budigam
Author-email: nagaraju.iith@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
Requires-Dist: scikit-learn (>0.22)
Requires-Dist: tensorflow (>2.3.0)

# Infer Gender
---

Infers gender from the indian first name or full name.



## Installation
---
### Using pip
[![PyPi Version](https://badge.fury.io/py/infer-gender.svg)](https://pypi.org/project/infer-gender/)

You can install using the pip package manager by running
```sh
pip install infer-gender
```

Alternatively, you could install the latest version directly from Github:
```sh
pip install https://github.com/infer-gender/infer-gender/archive/master.zip
```

### Using conda

You can install using the conda package manager by running
```sh
conda install -c conda-forge infer-gender
```
### From source

Download the source code by cloning the repository or by pressing 'Download ZIP' on this page.

Install by navigating to the proper directory and running:
```sh
python setup.py install
```


## Usage
---

```python

from infer_gender import GenderPredictor
gp = GenderPredictor()

sample_names = ['katrina kaif','narendra modi','naga budigam','james bond','samantha']
predicted_genders = gp.predict_gender(sample_names)

for name,pred_gender in zip(sample_names,predicted_genders):
    print('{} --> {}'.format(name,pred_gender))
```

```text
katrina kaif --> Female
narendra modi --> Male
naga budigam --> Male
james bond --> Male
samantha --> Female

```


