UNPKG

@technobuddha/library

Version:
14 lines (13 loc) 316 B
/** * Approximate the number of syllables in a string * @param input - The string * @returns the number of syllables * @example * ```typescript * syllables('hello'); // 2 * syllables('syllable'); // 3 * ``` * @group String * @category Analysis */ export declare function syllables(input: string): number;