https://github.com/macropin/random-name-generator
Generate random male and female names with real-world probability.
https://github.com/macropin/random-name-generator
data-science python random-generation test-data-generator
Last synced: 9 months ago
JSON representation
Generate random male and female names with real-world probability.
- Host: GitHub
- URL: https://github.com/macropin/random-name-generator
- Owner: macropin
- Created: 2012-04-07T08:23:43.000Z (almost 14 years ago)
- Default Branch: main
- Last Pushed: 2022-06-22T01:03:44.000Z (almost 4 years ago)
- Last Synced: 2025-06-11T09:14:46.234Z (10 months ago)
- Topics: data-science, python, random-generation, test-data-generator
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Random Male and Female name generator
Generates random male and female names with real-world probability. (Well the occurrence of first name and last names, not the combination of the two).
Useful for generating test data for, err testing purposes.
## Install
Dev:
pip install -e git+https://github.com/macropin/random-name-generator.git#egg=name_generator
Prod:
pip install git+https://github.com/macropin/random-name-generator.git
Then download the data set from [www2.census.gov/topics/genealogy/1990surnames/](https://www2.census.gov/topics/genealogy/1990surnames/) and place the three files, (`dist.all.last`, `dist.female.first`, `dist.male.first`) in ./data.
## Usage Examples
./name_generator.py -u -m 10
./name_generator.py -m 10 -f 10
./name_generator.py -r 20
./name_generator.py -u -i -r 10
-- Andrew Cutler