weighted-markov-generator
Version:
Quick and simple to use weighted markov text generator, seed with any text
10 lines (9 loc) • 356 B
TypeScript
import { SeedDictionary } from './seedDictionary';
export declare class WeightedMarkovGenerator {
seedLength: number;
seedDictionary: SeedDictionary;
constructor(seedLength?: number);
setSeedLength(seedLength: number): void;
seedText(text: string): void;
generateText(textLength: number, start?: string, endsOn?: string): string;
}