UNPKG

pronounceability

Version:

Calculate pronounceability for a given word.

22 lines (21 loc) 474 B
type Tuple = { [K: string]: { [K: string]: number; }; }; type Triple = { [K: string]: { [K: string]: { [K: string]: number; }; }; }; export declare class Pronounceable { hasVowels(word: string): boolean; clean(word: string): string; percent(score: number, count: number): number; trainTuples(words: string[]): Tuple; trainTriples(words: string[]): Triple; score(word: string): number; } export {};