🔡
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

NameFilter

PreviousNameNextNameFormat

Last updated 2 months ago

Validates names produced by a name generator against a set of configurable constraints.

Implements:

Constructors

Constructor
Description

NameFilter()

Instantiates a new with no constraints.

Methods

Method
Returns
Description

Add(System.String[] patterns)

Adds new patterns to this filter.

Add( constraint)

Adds a new constraint to this filter.

IsValid( name)

System.Boolean

Returns true if the specified name does not match any of this filter's contraints, else returns false.

IsValid(System.String name)

System.Boolean

Returns true if the specified name does not match any of this filter's contraints, else returns false.

Properties

Property
Type
Description

Constraints

System.Collections.Generic.List <>

The list of constraints that names must pass to be considered valid.

INameFilter
NameFilter
NameFilter
FilterConstraint
NameFilter
Name
FilterConstraint