UNPKG

cmu-syllable-counter

Version:

Fast and accurate syllable counter for English words using CMU Dictionary

22 lines 936 B
/** * @fileoverview * Non-minified TypeScript version of the hyphenation patterns for the 'en-us' locale. * * This file contains two main parts: * 1. An array of numbers representing hyphenation patterns. * 2. A trie-like object structure for looking up hyphenation rules based on character sequences. */ /** * Defines the recursive type for the hyphenation patterns object. * A node in the pattern object can be a number, a recursive HyphenationPatternObject, * or an array containing a mix of numbers and recursive objects. */ export type HyphenationPatternObject = { [key: string]: number | HyphenationPatternObject | (number | HyphenationPatternObject)[]; }; /** * The full hyphenation data, a tuple containing an array of numbers and a nested pattern object. */ declare const hyphenationPatternsEnUs: [number[], HyphenationPatternObject]; export default hyphenationPatternsEnUs; //# sourceMappingURL=en-us.d.ts.map