Skip to content

Guide 1.1.2꞉ Consonant Positioning

kesac edited this page Dec 1, 2023 · 1 revision

Consonant Positioning

If you are configuring the SyllableGenerator directly, you will have the ability to influence consonant positioning.

Recall that a syllable consists of three parts:

  • A vowel (or nucleus)
  • An optional consonant before the vowel (also called an onset)
  • An optional consonant after the vowel (also called a coda)

When tailoring the characters used in name generation, you should specify the consonants occurring before and after a vowel separately:

var g = new NameGenerator()
        .UsingSyllables(x => x
            .WithVowels("ae")
            .WithLeadingConsonants("str")    // Onsets
            .WithTrailingConsonants("mnl")); // Codas

In this example, the characters s t r can start a syllable while the characters m n l can end a syllable. Calling Next() on this generator will produce names like:

Sara
Taen
Ralte

In Syllabore, onsets are called leading consonants and codas are called trailing consonants.