mbartelsman-dev / dynasties

0 stars 0 forks source link

Name generation #1

Open mbartelsm opened 4 years ago

mbartelsm commented 4 years ago

Name settings are to be pulled from an external, human readable and editable config file

Config example

[given_names.male]
"John" = "1.0"  # Names are weighed
"Jay" = "0.3"  # Probability of being chosen upon random selection
# ...

[given_names.female]
"Dee" = "0.5"
"Jane" = "0.9"
# ...

[family_names]
"Doe" = "0.5"
"Random" = "0.6"
# ...
mbartelsm commented 4 years ago

Laid out skeleton for writing default config files and reading them back in, next step is to properly serialize and deserialize the toml format on build and execution, to avoid bloating the build.rs script and to actually be able to use the data.

After that I need to implement the logic for the name generation, taking the weighing into account, and then cleanup of the skeleton. Having done that, names should be nearly finished.

Branch: names_wip