import type { TokenFeatures, UPOS } from '@interslavic/conllu'; /** * Result of parsing XPOS tag: [UPOS, features object] * TokenFeatures object contains morphological features as plain object: { Gender: "Masc", Number: "Sing" } */ export type XPosParseResult = [UPOS, TokenFeatures]; /** * Parse Interslavic XPOS (language-specific POS) tag to UPOS and morphological features. * * Returns an array of [UPOS, features] tuples. Usually one element, but some tags * like "m./f." or "v.tr. ipf./pf." expand to multiple variants. * * @param xpos - Language-specific POS tag from partOfSpeech column * @returns Array of [UPOS tag, features object] * * @example * parseXPos('test', 'm.') // => [['NOUN', { Gender: "Masc" }]] * parseXPos('Test', 'm.propn.') // => [['PROPN', { Gender: "Masc" }]] * parseXPos('kųdėŕ', 'm./f.') // => [['NOUN', { Gender: "Masc" }], ['NOUN', { Gender: "Fem" }]] * parseXPos('pijanica', 'm.anim./f.') // => [['NOUN', { Animacy: "Anim", Gender: "Masc" }], ['NOUN', { Gender: "Fem" }]] * parseXPos('testovati', 'v.tr. ipf./pf.') // => [['VERB', { Aspect: "Imp", VerbForm: "Inf" }], ['VERB', { Aspect: "Perf", VerbForm: "Inf" }]] */ export declare function parseXPos(lemma: string, xpos: string): XPosParseResult[];