This is a name generator for fictional characters. It's first and
foremost a library that can be added to other projects. It also
has a namegen
command line utility for generating names.
Use the ./build.sh
bash script to build the binary for your
system.
There are 4 steps to adding a new name generator to this project.
Note: There is a good guide to name formats here: https://www.fbiic.gov/public/2008/nov/Naming_practice_guide_UK_2006.pdf
First, create a new .go file for your name lists. Within it, create three new global variables - one for male first names, one for female first names, and one for family names. They should be named appropriately (see existing files for reference).
In namegen.go, add your name generator to the map of name generators in the NameGeneratorFromType function. It should reference the global variables you created in step one.
In cmd/namegen/main.go, add the name type to the nameLists
array.
Run ./build.sh
and test out your new name generator.