Name Analysis & Prediction Engine
Project description
EthniData: Name Diversity & Analysis Engine
EthniData is a powerful library for analyzing names to predict cultural origin, ethnicity, and gender usage useful for diversity analytics and demographic studies.
Installation
pip install ethnidata
Example Usage & Verification
Code
from ethnidata import EthniData
ed = EthniData()
names = ["Yılmaz", "Tanaka", "Schmidt", "O'Connor"]
results = [ed.predict_nationality(name, name_type="last") for name in names]
for r in results:
print(f"Name: {r['name']:10} -> Predicted: {r['predicted_country']}")
Verified Output
Name: Yılmaz -> Predicted: TR
Name: Tanaka -> Predicted: JP
Name: Schmidt -> Predicted: DE
Name: O'Connor -> Predicted: IE
Features
- Nationality Prediction: Predict likely country of origin for surnames.
- Gender Inference: Probabilistic gender detection.
- Report Generation: Create diversity reports from user lists.
- Visualizations: Built-in plotting for demographic breakdowns.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ethnidata-4.1.3.tar.gz
(32.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ethnidata-4.1.3-py3-none-any.whl
(54.9 kB
view details)
File details
Details for the file ethnidata-4.1.3.tar.gz.
File metadata
- Download URL: ethnidata-4.1.3.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
876eec9546ccf335b712a855de1d8698097da55b135fe73edb86000a1089ea88
|
|
| MD5 |
3f69f83557b991c39452d1804bfa7e7d
|
|
| BLAKE2b-256 |
3ddecd709fb2ca57e5d84d6bb3481bf8933f5917073ba7e63b850643e42c0732
|
File details
Details for the file ethnidata-4.1.3-py3-none-any.whl.
File metadata
- Download URL: ethnidata-4.1.3-py3-none-any.whl
- Upload date:
- Size: 54.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bf3061032ac9291a12451883aa91453f40e81c19aea9d94fa4af70abcf7196a
|
|
| MD5 |
cc0855260d34bec516dc34f0df7c0391
|
|
| BLAKE2b-256 |
fa74c49e8f3672e4bdf0b1c7aafb97efe09485cdcb0030b00706edc12a3d6fb3
|