Skip to content

v2.3

Compare
Choose a tag to compare
@kesac kesac released this 10 Oct 00:10
· 10 commits to master since this release

Changes

  • Simplified DefaultSyllableGenerator used in vanilla NameGenerators
  • 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));