🔡
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
  • Constructors
  • Methods
  • Properties
  1. Class Docs

SyllableGenerator

PreviousSerializedNameGeneratorNextSyllableGeneratorFluentWrapper

Last updated 2 months ago

Generates syllables that can be sequenced into names.

Implements: , Archigen.IGenerator<System.String>,

Constructors

Constructor
Description

SyllableGenerator()

Instantiates a new with no symbol generators.

Methods

Method
Returns
Description

Add( position, System.String symbols)

Adds symbols to the specified position. Each character in the string is considered a separate symbol.

Add( position, generator)

Adds a . The generator's symbols will only be used for the specified position.

Copy()

Creates a deep copy of this excluding internal instances of System.Random.

Next()

System.String

Generates a new syllable and returns it as a string.

SetChance( position, System.Double chance)

Sets the probability of generating a symbol for the specified position. The default value is 1.0 (100% probability) unless changed by calling this method.

Properties

Property
Type
Description

PositionChance

System.Collections.Generic.Dictionary <,System.Double>

The probability of generating a symbol for a given position. The default value is 1.0 (100%) for each position as long as there are symbols available.

Random

System.Random

The instance of System.Random used to simulate randomness.

SymbolGenerators

System.Collections.Generic.Dictionary <,System.Collections.Generic.List <>>

The symbol generators used to create new syllables.

ISyllableGenerator
IRandomizable
SyllableGenerator
SymbolPosition
SyllableGenerator
SymbolPosition
SymbolGenerator
SyllableGenerator
SymbolGenerator
ISyllableGenerator
SyllableGenerator
SymbolPosition
SyllableGenerator
SymbolPosition
SymbolPosition
SymbolGenerator