Documentation

Linglib.Core.Word

Word #

@cite{biberauer-roberts-2014} @cite{dryer-1992}

The lexical unit and its building blocks: morphological feature types (aliased to Universal Dependencies), the Features bundle, and the Word structure.

Provenance #

Lifted from Core/Lexical/Word.lean in the cleanup that dissolved Core/Lexical/. Every layer (Fragments, Phenomena, Theories, Features, Typology) consumes Word; the broad consumer base is the strongest case for keeping it in Core/.

Universal Dependencies Integration #

Morphological features are aliased to UD types:

Syntactic categories use UD.UPOS directly (the 17 universal POS tags).

Types without UD equivalents remain defined here:

@[reducible, inline]
abbrev Number :

Grammatical number. Aliased to UD.Number for cross-linguistic compatibility.

Equations
Instances For
    @[reducible, match_pattern, inline]

    Singular (compatibility alias for UD.Number.Sing)

    Equations
    Instances For
      @[reducible, match_pattern, inline]

      Plural (compatibility alias for UD.Number.Plur)

      Equations
      Instances For
        @[reducible, match_pattern, inline]

        Dual (compatibility alias for UD.Number.Dual). Used for lexical items that morphologically restrict to two-atom domains (e.g. English both/neither, Slovenian dual, Icelandic hvor).

        Equations
        Instances For
          @[reducible, inline]
          abbrev Person :

          Grammatical person. Aliased to UD.Person for cross-linguistic compatibility.

          Constructors are: .first, .second, .third, .zero (no compatibility aliases needed - names match)

          Equations
          Instances For
            @[reducible, inline]
            abbrev Case :

            Grammatical case. Aliased to UD.Case for cross-linguistic compatibility. Lowercase match_pattern constructor aliases (.nom, .acc, .gen, .dat, .loc, …) live in UD.lean and apply directly.

            Equations
            Instances For
              @[reducible, inline]
              abbrev Voice :

              Voice: active vs passive. Aliased to UD.Voice.

              Equations
              Instances For
                @[reducible, inline]

                Active voice (compatibility alias)

                Equations
                Instances For
                  @[reducible, inline]

                  Passive voice (compatibility alias)

                  Equations
                  Instances For
                    @[reducible, inline]
                    abbrev VForm :

                    Verb form. Aliased to UD.VerbForm.

                    Equations
                    Instances For
                      @[reducible, inline]

                      Finite (compatibility alias)

                      Equations
                      Instances For
                        @[reducible, inline]

                        Infinitive (compatibility alias)

                        Equations
                        Instances For
                          @[reducible, inline]

                          Past participle (compatibility alias - maps to Part)

                          Equations
                          Instances For
                            @[reducible, inline]

                            Present participle (compatibility alias - maps to Part)

                            Equations
                            Instances For
                              @[reducible, inline]
                              abbrev Tense :

                              Tense. Aliased to UD.Tense.

                              Equations
                              Instances For
                                @[reducible, inline]

                                Past tense (compatibility alias)

                                Equations
                                Instances For
                                  @[reducible, inline]

                                  Present tense (compatibility alias)

                                  Equations
                                  Instances For
                                    @[reducible, inline]

                                    Future tense (compatibility alias)

                                    Equations
                                    Instances For
                                      inductive MassCount :

                                      Morphosyntactic mass/count feature. No direct UD equivalent.

                                      A formal feature parallel to grammatical gender — not an ontological distinction. Determines kind-anaphor morphology: [MASS] → it, [COUNT] → they. Evidence: pollen[MASS] → it vs pollen grains[COUNT] → they for the same referent (@cite{krifka-2026} §2).

                                      Instances For
                                        def instReprMassCount.repr :
                                        MassCountStd.Format
                                        Equations
                                        Instances For
                                          @[implicit_reducible]
                                          Equations
                                          @[implicit_reducible]
                                          instance instDecidableEqMassCount :
                                          DecidableEq MassCount
                                          Equations
                                          @[implicit_reducible]
                                          instance instHashableMassCount :
                                          Hashable MassCount
                                          Equations
                                          inductive Valence :

                                          Transitivity / argument structure. No direct UD equivalent.

                                          Instances For
                                            def instReprValence.repr :
                                            ValenceStd.Format
                                            Equations
                                            Instances For
                                              @[implicit_reducible]
                                              instance instReprValence :
                                              Repr Valence
                                              Equations
                                              @[implicit_reducible]
                                              instance instDecidableEqValence :
                                              DecidableEq Valence
                                              Equations
                                              @[implicit_reducible]
                                              instance instInhabitedValence :
                                              Inhabited Valence
                                              Equations
                                              inductive HeadDirection :

                                              Head direction of a syntactic construction. Used for word-order typology and constraints like FOFC.

                                              Instances For
                                                def instReprHeadDirection.repr :
                                                HeadDirectionStd.Format
                                                Equations
                                                Instances For
                                                  @[implicit_reducible]
                                                  Equations
                                                  @[implicit_reducible]
                                                  Equations
                                                  structure Features :

                                                  Feature bundle for words. Uses aliased UD types.

                                                  Instances For
                                                    def instReprFeatures.repr :
                                                    FeaturesStd.Format
                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      @[implicit_reducible]
                                                      instance instReprFeatures :
                                                      Equations
                                                      def instDecidableEqFeatures.decEq (x✝ x✝¹ : Features) :
                                                      Decidable (x✝ = x✝¹)
                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        structure Word :

                                                        A word: form + category + features.

                                                        Instances For
                                                          @[implicit_reducible]
                                                          instance instReprWord :
                                                          Repr Word
                                                          Equations
                                                          def instReprWord.repr :
                                                          WordStd.Format
                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For
                                                            def Word.mk' (form : String) (cat : UD.UPOS) :

                                                            Convenience constructor for a featureless word (form + category only).

                                                            Equations
                                                            Instances For

                                                              Derive a passive variant: sets voice to passive, valence to intransitive. Used to compose with VerbEntry.toWordPastPart for passive constructions.

                                                              Equations
                                                              • One or more equations did not get rendered due to their size.
                                                              Instances For
                                                                @[implicit_reducible]
                                                                instance instBEqWord :
                                                                BEq Word
                                                                Equations
                                                                @[implicit_reducible]
                                                                instance instToStringWord :
                                                                ToString Word
                                                                Equations
                                                                def wordsToString (ws : List Word) :
                                                                String

                                                                Convert a word list to a readable string.

                                                                Equations
                                                                Instances For