Documentation

Linglib.Data.Structures.Schema

Language samples #

This file defines the rows of a paper's language sample, after the CLDF StructureDataset: the languages of the sample, and the codes a language takes for a parameter the paper records. The parameters, their codes and the rows of a sample are generated per paper.

Main definitions #

Implementation notes #

A Language is a row of a CLDF LanguageTable, a language of the sample.

  • id : String

    The ID column holds a stable identifier keyed to the paper.

  • name : String

    The Name column holds the language's name as the source prints it; where its tables print several, the JSON records the others.

  • glottocode : Option Glottocode

    The Glottocode column holds the Glottocode, when the source's name determines one.

Instances For
    def Data.Structures.instDecidableEqLanguage.decEq (x✝ x✝¹ : Language) :
    Decidable (x✝ = x✝¹)
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        structure Data.Structures.Coded (C : Type u_1) :
        Type u_1

        A Coded C is a value of a CLDF ValueTable: a code of the parameter C, with the marks a source may put on it.

        • code : C

          The code.

        • questionable : Bool

          The source marks the code as questionable.

        • optional : Bool

          The source marks the strategy the code names as optional.

        Instances For
          @[instance_reducible]
          instance Data.Structures.instDecidableEqCoded {C✝ : Type u_1} [DecidableEq C✝] :
          DecidableEq (Coded C✝)
          Equations
          def Data.Structures.instDecidableEqCoded.decEq {C✝ : Type u_1} [DecidableEq C✝] (x✝ x✝¹ : Coded C✝) :
          Decidable (x✝ = x✝¹)
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[instance_reducible]
            instance Data.Structures.instReprCoded {C✝ : Type u_1} [Repr C✝] :
            Repr (Coded C✝)
            Equations
            def Data.Structures.instReprCoded.repr {C✝ : Type u_1} [Repr C✝] :
            Coded C✝ → ℕ → Std.Format
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For