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

import { WordGenerator } from "@ironarachne/word-generator";

const generator = new WordGenerator();
generator.patterns.push("vccv");
generator.patterns.push("vccvc");

const word = generator.generate();

Constructors

Properties

Methods

Constructors

Properties

patterns: string[]

Methods

Generated using TypeDoc