UNPKG

taipa

Version:

Taiwanese morphological parsing library

13 lines (12 loc) 931 B
import { TonalPhrase } from '../unchange/unit'; import { TonalCombiningMetaplasm } from '../metaplasm'; /** Creates a lexeme given a `TonalCombiningMetaplasm`. If metaplasm is not provided, `TonalZeroCombining` is defaulted. Excessive tokens are ignored. */ export declare function createTonalInflectionLexeme(str: string, metaplasm?: TonalCombiningMetaplasm): import("./lexeme").TonalInflectionLexeme; /** Creates a phrase given a sequence of arbitrary words regardless of syntax. Tokens are analyzed one by one. */ export declare function createTonalPhrase(str: string): TonalPhrase; /** * Creates a compound in which the preceding word will be inflected and the following word will not. * @param preceding A word that will be inflected. * @param following A word that will not be inflected. */ export declare function createCompoundPhraseme(preceding: string, following: string): import("./phraseme").TonalCompoundPhraseme;