Syllable Sets
The SyllableSet class is a specialized syllable generator that creates a finite collection of syllables. When used with a NameGenerator, generated names can sound more cohesive as if they originated from the same geographic region, culture, or time period.
var syllables = new SyllableGenerator()
.Add(SymbolPosition.First, "ghjklmnvw")
.Add(SymbolPosition.Middle, "aeiou")
.Add(SymbolPosition.Last, "bcdfklmnrst");
// While many syllables are possible,
// this set will only ever return 8 of them.
// The 8 will be generated at random.
var syllableSet = new SyllableSet(syllables, 8);
var names = new NameGenerator().Any(syllableSet);
Possible syllables include kam
lot
gil
wes
and hek
. If these are generated by the syllable set, then multiple calls to names.Next()
will generate names like:
Wesgil
Gillot
Lotweshek
Last updated