import type { Token, TokenFeatures, UPOS, XPOS } from '@interslavic/conllu'; import type { Lemma } from '../schema.ts'; /** * A form you already know, described in CoNLL-U columns. `form` is the only * required one; every other column narrows the answer down. */ export interface KnownForm { form: string; lemma?: string; upos?: UPOS; xpos?: XPOS; feats?: TokenFeatures; } /** * Fill in a paradigm from whatever you know about a word. * * A bare string is the least you can say, and the part of speech gets guessed * from the ending. Naming a `lemma` alongside an oblique `form` gives a second * principal part; several forms in an array give as many. * * A paradigm handed straight back comes out unchanged, so what a consumer * stores is as good an input as the dictionary entry it came from. * * Single words only — one word in, one paradigm out. Phrases like `bojati sę` * or `Sjedinjene Štaty Ameriky` inflect as a unit and belong elsewhere. */ export declare function inflect(known: string | KnownForm | KnownForm[]): Token[]; /** * The dictionary-import path: a whole Steenbergen record, already normalized * into words, drives the same paradigm modules. Used by `tools/dump`. */ export declare function inflectLemma(lemma: Lemma): Token[] | undefined;