v2.3
Changes
- Simplified
DefaultSyllableGenerator
used in vanillaNameGenerators
- Added way to control the final consonant of a name
- Simplified way for controlling sequence probabilities
Example
var syllables = new SyllableGenerator();
syllables.WithLeadingConsonants("bdlmprst");
syllables.WithVowels("aeio");
syllables.WithFinalConsonants("dlmnrstx"); // These consonants only appear at the end of a name
syllables.WithProbability(x => x
.OfLeadingConsonants(0.95, 0.25) // The second value is the probability of a sequence
.OfFinalConsonants(0.50, 0.25));