Creates a new WordGenerator.
Optional instance of an RNG to use.
Optional additional or replacement custom element sets to inject.
The active element set used to parse phonetic elements.
The list of generic patterns available.
The Random Number Generator.
Generates a set of example words.
The number of unique words to generate.
The maximum number of attempts to generate unique words.
A Set of generated words.
Retrieves all loaded symbols available for pattern generation.
An array of string symbols.
Retrieves all known element sets, sorted in alphabetical order by name.
An array of all available WordElementSets.
Parses a pattern element into an appropriately matched phoneme.
The symbol to parse (e.g. "v" or "c").
A phonetic string corresponding to the element symbol, or the original element cast to lowercase.
Validates a pattern before attempting generation.
The word generation pattern to validate.
True if valid, throws if invalid.
A word generator.
Remarks
After initializing the word generator by adding patterns to the internal patterns array, you can generate words by calling the generate method.
Example: Generating a word