A word generator.
After initializing the word generator by adding patterns to the internal patterns array, you can generate words by calling the generate method.
import { WordGenerator } from "@ironarachne/word-generator";const generator = new WordGenerator();generator.patterns.push("vccv");generator.patterns.push("vccvc");const word = generator.generate(); Copy
import { WordGenerator } from "@ironarachne/word-generator";const generator = new WordGenerator();generator.patterns.push("vccv");generator.patterns.push("vccvc");const word = generator.generate();
Generated using TypeDoc
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