phonemize
Version:
Fast phonemizer with rule-based G2P prediction. Pure JavaScript implementation.
11 lines (10 loc) • 463 B
TypeScript
/**
* Korean text normalization for preProcess: converts Arabic digits to
* Sino-Korean Hangul. anyAscii then romanizes to the camelCase syllable
* form (e.g. "백" → "Baek") that ko-g2p expects.
*
* Only the Sino-Korean system (일·이·삼 …) is implemented; the native
* counter system (하나·둘·셋 …) requires per-counter context detection
* and is left for a later pass.
*/
export declare function expandKoreanText(text: string): string;