UNPKG

weighted-markov-generator

Version:

Quick and simple to use weighted markov text generator, seed with any text

19 lines (18 loc) 484 B
declare class SeedBlob { count: number; countMap: Map<string, number>; constructor(); addValue(val: string): void; getWeightedValue(): string; } export declare class SeedDictionary { seedLength: number; dict: Map<string, SeedBlob>; constructor(seedLength: number); populateDictionary(text: string): void; getRandomSeed(): string; hasSeed(seed: string): boolean; getValue(seed: string): string; clearDictionary(): void; } export {};