🔡
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 Examples

Soft/Hard-Sounding Names

// Generates names like: Lelia, Yannomo, Lammola
var names = new NameGenerator()
    .Start(x => x
        .First(x => x
            .Add("lmny").Weight(8)
            .Add("wr").Weight(2)
            .Add("s"))
        .Middle(x => x
            .Add("aeo").Weight(4)
            .Add("u")
            .Cluster("ia", "oe", "oi")))
    .Inner(x => x.CopyStart()
        .First(x => x
            .Cluster("mm", "nn", "mn", "ll")))
    .End(x => x.CopyStart()
        .Last(x => x
            .Add("smn")
            .Cluster("sh", "th"))
            .Chance(0.20))
    .SetSize(2, 3);

PreviousMore ExamplesNextFantasy Names

Last updated 1 month ago