nameinfo
v1.0.1
Published
A command-line tool to get information about names, including meaning, origin, gender, age, and nationality predictions
Maintainers
Readme
nameinfo
A command-line tool to get information about names, including meaning, origin, gender, age, and nationality predictions.
Features
- Get name meanings from multiple sources:
- Local database with over 200 names from various cultures
- BehindTheName API
- Web scraping from various sources
- Get demographic predictions:
- Nationality prediction (from nationalize.io)
- Gender prediction (from genderize.io)
- Age prediction (from agify.io)
- Colorful command-line interface
- Offline mode option
Installation
Global Installation
npm install -g nameinfoUsing with npx
npx nameinfo <name>Usage
nameinfo <name> [options]Options
--web-only: Skip local database and only use web scraping--offline: Use only local database (no web requests)-h, --help: Display help information-V, --version: Display version number
Examples
# Basic usage
nameinfo john
# Skip local database and only use web scraping
nameinfo emma --web-only
# Use only local database (no web requests)
nameinfo michael --offlineOutput Example
Information for "Emma"
Name Meaning:
Meaning: Universal, whole
Origin: Germanic
Source: Local database
Nationality Prediction:
1. GB (29.23%)
2. US (15.98%)
3. AU (8.75%)
Gender Prediction:
Gender: female (99.94% probability)
Age Prediction:
Average age: 58 (based on 294983 samples)Supported Names
The local database includes over 200 names from various cultures, including:
- Turkish names
- English names
- Spanish names
- French names
- German names
- Italian names
- Scandinavian names
- Japanese names
- Chinese names
- Arabic names
- Indian names
API Sources
- BehindTheName API - For name meanings
- Nationalize.io - For nationality predictions
- Genderize.io - For gender predictions
- Agify.io - For age predictions
Web Scraping Sources
- behindthename.com
- isimlersozlugu.com.tr
- rehberim.gen.tr
- ismimizne.com
- turkishnameinfo.com
License
MIT
Author
Eser Sarıyar
