https://github.com/vtan/namegen
Name generator based on US population data
https://github.com/vtan/namegen
name-generator webapp
Last synced: about 1 year ago
JSON representation
Name generator based on US population data
- Host: GitHub
- URL: https://github.com/vtan/namegen
- Owner: vtan
- License: mit
- Created: 2020-10-27T17:42:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T20:09:42.000Z (over 2 years ago)
- Last Synced: 2025-02-15T08:37:50.329Z (over 1 year ago)
- Topics: name-generator, webapp
- Language: Scala
- Homepage: https://namegen.net/
- Size: 160 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# namegen
Generates random names based on US population data. In addition to picking names with real-world probabilities, less realistic names can be generated with a Markov chain.
## Data
The first names are aggregated from yearly data back to the 1880s: https://www.ssa.gov/oact/babynames/limits.html
The last names are from the 2000 US census data: https://www.census.gov/topics/population/genealogy/data/2000_surnames.html
## Build
Extract the [first name](https://www.ssa.gov/oact/babynames/names.zip) and [last name](http://www2.census.gov/topics/genealogy/2000surnames/names.zip) data to the `data-raw` subdirectory, then generate the dataset:
```
$ sbt console
scala> namegen.historical.Dataset.buildToFile("data/firstnames.csv", "data/lastnames.csv")
scala> namegen.markov.Dataset.buildToFile("data/markov.csv")
```
Then you can start the server with `sbt run` and the client dev server with `yarn start`, which will run at http://localhost:8080/.