🔡
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

NameFormatter

PreviousNameFormatNextNameFormatterGeneratorOptions

Last updated 2 months ago

A convenience class used for modeling names that have multiple parts and need multiple generators to create them.

Implements: Archigen.IGenerator<System.String>

Constructors

Constructor
Description

NameFormatter(System.String format)

Instantiates a new with the specified format. Substrings that need to be replaced with a generated name should be surrounded with curly brackets. For example, the format "John {middle-name} Smith" tells a that the name between the first and last needs to be generated.

Methods

Method
Returns
Description

Define(System.String propertyName, Archigen.IGenerator <System.String> nameGenerator, stringCase, System.Boolean useLeadingSpace)

Next()

System.String

Returns a new generated name based on the previously specified format.

Properties

Property
Type
Description

BoundNameGenerators

System.Collections.Generic.Dictionary <System.String,Archigen.IGenerator <System.String>>

The used by this .

Format

System.String

The desired format for names. Surround substrings that need to be replaced with a generated name with curly brackets. For example, the format "John {middle-name} Smith" tells a that the name between the first and last needs to be generated.

Options

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

Provides hints on whether a name should be upper case, lower case, capitalized, etc.

NameFormatter
NameFormatter
NameFormat
NameFormatter
NameGenerator
NameFormatter
NameFormatter
NameFormatterGeneratorOptions