UNPKG

@harryjwang/simplewordcloud

Version:

A simple word cloud generator supporting English and Chinese text

15 lines 431 B
/** * English text tokenizer using the Natural library */ export declare class EnglishTokenizer { private tokenizer; private stopwords; constructor(); /** * Tokenize English text into words and count their frequencies * @param text The input English text * @returns A map of words to their frequencies */ tokenize(text: string): Map<string, number>; } //# sourceMappingURL=english.d.ts.map