Docs / Morphology / Word / Leipzig

Leipzig category labels of tokens

import Linglib.Morphology.Word.Leipzig · namespace Morphology

The Leipzig Glossing Rules render the grammatical categories of a morph by labels in capitals, drawn from a list of standard abbreviations, and separate the labels of one morph by periods, except that a person and a number that cooccur in this order are written together, as 3SG. This file reads the labels that name a value of a token feature into the token's features: the persons 1, 2 and 3, the first refined by INCL and EXCL, the numbers SG, DU and PL, the genders M, F and N, the cases, definiteness, the infinitive, participle and converb, the tenses, the moods and negation. A label whose category is no feature value, as FOC or PASS, names nothing.

Main definitions

Implementation notes

  • The genders are also read in the spellings MASC, FEM and NEUT, which the rules' licence to deviate from the list (Rule 3) covers and which Corbett's books use.
  • Aspect and voice are not read: the list's perfective PFV and perfect PRF would both be the annotation's Perf, and its causative and antipassive are derivations.
  • Labels are lists of characters, as Gloss.labels produces them from a gloss, so that the reading is consumed by decide.

References

  • Comrie et al. 2008, The Leipzig Glossing Rules: Conventions for interlinear morpheme-by-morpheme glosses

Declarations

L65–68

The features the category labels ls name. A person is read from a label INCL or EXCL, else from the digit that begins a label, and a number from a label after its person digit, a person and a number being written together (Rule 5).

def Features.ofLabelsL72–81
(ls : List (List Char)) :

Used in AlonsoOvalleRoyer2024, Corbett2000