UNPKG

taipa

Version:

Taiwanese morphological parsing library

94 lines (93 loc) 4.19 kB
import { TonalInflectionLexeme } from './lexeme'; import { TonalLetterTags } from '../tonal/tonalres'; /** Inflects the inflectional suffix of a word. Lexical inflector. */ export declare function inflectDesinence(word: string): TonalInflectionLexeme; /** Inflects the transfix of a word. All tonals other than 3rd tone will be changed to 3rd tone. Lexical inflector. */ export declare function inflectTransfix(word: string): TonalInflectionLexeme; /** * Inflects e to ez. Lexical inflector. * @param word E, ew, or ez */ export declare function inflectEncliticE(word: string): TonalInflectionLexeme; /** * Inflects 4th tone to 1st tone or 3rd tone accordingly. Inflects laih to laiz. Lexical inflector. * @param word Particle * @param tone F, w, or z */ export declare function inflectPhrasalVerbParticle(word: string, tone: TonalLetterTags): TonalInflectionLexeme; /** * Inflects lez and lew to le. Lexical inflector. * @param word Lew, lez, or le */ export declare function inflectEncliticLe(word: string): TonalInflectionLexeme; /** * Inflects ex to ew. Lexical inflector. * @param word Ex */ export declare function inflectPossesiveEx(word: string): TonalInflectionLexeme; /** * Inflects 4th tone to either 1st free tone or 7th free tone. Lexical inflector. * @param word 4th checked tone * @param tone F or z */ export declare function inflectTo(word: string, tone: TonalLetterTags): TonalInflectionLexeme; /** * Inflects 8th tone to 2nd tone. Addon inflector. * @param word 8th neutral tone */ export declare function inflectEighthToSecond(word: string): TonalInflectionLexeme; /** * Inflects a phrasal verb of length 2 to proceeding form. Phrasal inflector. * @param verb Main word * @param particle Particle */ export declare function inflectToProceeding(verb: string, particle: string): import("./phraseme").PhrasalVerbPhraseme; /** * Inflects a phrasal verb of length 3 to proceeding form. Phrasal inflector. * @param verb Main word * @param particle Particle one * @param particleTwo Particle two */ export declare function inflectVppToProceeding(verb: string, particle: string, particleTwo: string): import("./phraseme").PhrasalVerbVppPhraseme; /** * Inflects a phrasal verb of length 3 to transitive form. Phrasal inflector. * @param verb Main word * @param particle Particle one * @param particleTwo Particle two */ export declare function inflectVppToTransitive(verb: string, particle: string, particleTwo: string): import("./phraseme").PhrasalVerbVppPhraseme; /** * Inflects e form to adnominal form. Phrasal inflector. * @param adjectivalNoun Main word * @param e E, ew, or ez */ export declare function inflectEToAdnominal(adjectivalNoun: string, e: string): import("./phraseme").TonalMainParticlePhraseme; /** * Inflects le form to conjunctive form. Phrasal inflector. * @param verb Main word * @param le Le, lew, or lez */ export declare function inflectLeToConjunctive(verb: string, le: string): import("./phraseme").TonalMainParticlePhraseme; /** * Inflects possesive case from teriminal form to adnominal form. Phrasal inflector. * @param noun Main word * @param ex Ex */ export declare function inflectPossesive(noun: string, ex: string): import("./phraseme").TonalMainParticlePhraseme; /** * Inflects a phrasal verb of length 2 to participle form. Phrasal inflector. * @param verb Main word * @param particle Particle * @param tone 1st tone or 7th tone * */ export declare function inflectToParticiple(verb: string, particle: string, tone: TonalLetterTags): import("./phraseme").PhrasalVerbPhraseme; /** * Inflects a phrasal verb of length 3 to participle form. Phrasal inflector. * @param verb Main word * @param particle Particle one * @param particleTwo Particle two * @param tone 1st tone or 7th tone */ export declare function inflectVppToParticiple(verb: string, particle: string, particleTwo: string, tone: TonalLetterTags): import("./phraseme").PhrasalVerbVppPhraseme; /** Inflects a series of words. The forms of the last word indicates the whole phrase is in proceeding form or not. Phrasal inflector. */ export declare function inflectSerial(...words: string[]): import("./phraseme").SerialPhraseme;