taipa
Version:
Taiwanese morphological parsing library
26 lines (25 loc) • 1.5 kB
TypeScript
import { Sound } from './unit';
/** Turn sounds into a sequence of letter-sound pairs */
export declare function getLetterSoundPairsSequential(soundSeqs: Sound[][]): [string, string][];
/** Turn sounds into syllabic letter-sound pairs. */
export declare function getLetterSoundPairsSyllabic(soundSeqs: Sound[][]): [string, string][][];
/** Analyze an input into syllabic letter-sound pairs. */
export declare function analyzeIntoSyllables(input: string): [string, string][][];
/** Analyze an input into a sequence of letter-sound-pairs. */
export declare function analyzeIntoSequence(input: string): [string, string][];
/** Get the standalone forms of a syllable. */
export declare function getStandaloneForms(syl: string): string[];
/** Get lemmas of the word. */
export declare function getLemmas(input: string): string[];
/** Join the letters in each tuple. */
export declare function pairsToString(pairs: [string, string][]): string;
/** Get the stem of a word. */
export declare function getStem(input: string): string;
/** Get the inflectional suffix of a word. */
export declare function getDesinence(input: string): string;
/** Get the syllables whose substring is matched. */
export declare function getSyllablesInclude(input: string): string[];
/** Get the syllables that matched from the beginning. */
export declare function getSyllablesStart(input: string): string[];
/** Get the syllables that matched to the end. */
export declare function getSyllablesEnd(input: string): string[];