🔡
Syllabore
GitHub
  • Overview
  • Starting Out
  • Fine-Tuning Generators
    • Positioning
    • Clusters
    • Weights
    • Chancing
    • Transforms
    • Filtering
  • More Techniques
    • Formatters
    • Generator Pools
    • Syllable Sets
    • Generator Serialization
  • More Examples
    • Soft/Hard-Sounding Names
    • Fantasy Names
    • Spaceship Names
    • Futuristic City Names
  • Class Docs
    • FilterCondition
    • FilterConstraint
    • GeneratorPool<T>
    • INameFilter
    • INameTransformer
    • IPotentialAction
    • IRandomizable
    • ISyllableGenerator
    • Name
    • NameFilter
    • NameFormat
    • NameFormatter
    • NameFormatterGeneratorOptions
    • NameGenerator
    • NameGeneratorSerializer
    • NameGeneratorTypeInformation
    • SerializedNameGenerator
    • SyllableGenerator
    • SyllableGeneratorFluentWrapper
    • SyllablePosition
    • SyllableSet
    • Symbol
    • SymbolGenerator
    • SymbolPosition
    • Transform
    • TransformSet
    • TransformStep
    • TransformStepType
Powered by GitBook
On this page
  1. More Techniques

Syllable Sets

PreviousGenerator PoolsNextGenerator Serialization

Last updated 1 month ago

The class is a specialized syllable generator that creates a finite collection of syllables. When used with a , 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

SyllableSet
NameGenerator