-
Notifications
You must be signed in to change notification settings - Fork 2
Guide 1.1.3꞉ Sequences
kesac edited this page Dec 1, 2023
·
1 revision
- A syllable's nucleus or vowel can be a cluster of more than character (eg. "team", "rain", "look")
- Similarly, an onset or leading consonant can be a cluster (eg. "chat", "wheel", "shot")
- Finally, a coda or trailing consonant can be a cluster (eg. "beach", "mark", "tell")
In Syllabore, clusters are called sequences and you can define them separately from normal vowels and consonants if you wish to use them:
var g = new NameGenerator()
.UsingSyllables(x => x
.WithVowels("ae")
.WithLeadingConsonants("str")
.WithTrailingConsonants("mnl")
.WithVowelSequences("ou", "ui") // Vowel clusters, separate with commas
.WithLeadingConsonantSequences("wh", "fr") // Onset clusters
.WithTrailingConsonantSequences("ld","rd")); // Coda clusters
Or in a slightly more compact way:
var g = new NameGenerator()
.UsingSyllables(x => x
.WithVowels("ae").Sequences("ou", "ui")
.WithLeadingConsonants("str").Sequences("wh", "fr")
.WithTrailingConsonants("mnl").Sequences("ld", "rd"));
Calling Next()
on this generator will produce names like:
Soura
Tesard
Raldren