Documentation

Linglib.Morphology.Word.Features

Token features #

The morphosyntactic features a word token carries: the agreement dimensions, valued in the analytical inventories Person, Number, Gender and Case, and the nominal and verbal features of the Universal Dependencies annotation, definiteness, degree, pronoun type, reflexivity, verb form, tense, aspect, mood, voice and polarity, valued in the tag inventories until an analytical one exists. A token's features give each feature a value or ⊥, a slot of the flat order, so subsumption, unification and generalization are the pointwise order, partial join and meet; the Universal Dependencies annotation of a token is the matter of Morphology/Word/UD.lean.

Main declarations #

References #

The morphosyntactic features of a token.

Instances For
    @[instance_reducible]
    Equations
    def Morphology.instReprFeature.repr :
    Feature → ℕ → Std.Format
    Equations
    Instances For
      @[instance_reducible]
      Equations
      @[instance_reducible]
      instance Morphology.instDecidableEqValue (t : Feature) :
      DecidableEq t.Value
      Equations
      • One or more equations did not get rendered due to their size.
      @[instance_reducible]
      instance Morphology.instReprValue (t : Feature) :
      Repr t.Value
      Equations
      • One or more equations did not get rendered due to their size.
      @[reducible, inline]

      A token's features: a value or ⊥ in each feature.

      Equations
      Instances For
        def Morphology.Features.of (person : Option Person := none) (number : Option Number := none) (gender : Option Gender := none) (case_ : Option Case := none) (definiteness : Option UD.Definite := none) (degree : Option UD.Degree := none) (pronType : Option UD.PronType := none) (reflex : Bool := false) (verbForm : Option UD.VerbForm := none) (tense : Option UD.Tense := none) (aspect : Option UD.Aspect := none) (mood : Option UD.Mood := none) (voice : Option UD.Voice := none) (polarity : Option UD.Polarity := none) :

        The bundle specifying the named values and nothing else.

        Equations
        Instances For
          @[instance_reducible]
          Equations
          • One or more equations did not get rendered due to their size.

          The token is an interrogative or relative pro-form.

          Equations
          Instances For
            @[instance_reducible]
            Equations
            • One or more equations did not get rendered due to their size.