Documentation

Linglib.Features.MinimalPairs

Minimal Pairs — Theory-Neutral Judgment Data Vocabulary #

Shared vocabulary for introspective grammaticality contrasts — the minimal-pair tradition in which a datum is a pair of minimally-different sentences with a per-side acceptability judgment (typically the analyst's). This is the methodological tradition that the factorial-design machinery of [Spr07] / [SWP12] (Linglib/Studies/SprouseEtAl2012.lean) was introduced to discipline.

Two parallel families:

Judgments use the five-level Features.Judgment scale (Linglib/Features/Acceptability.lean).

Word-based #

A minimal pair: two candidate forms with per-side acceptability judgments. The judgment fields default to the traditional binary (lhs = .acceptable, rhs = .ungrammatical) so most data sites only need to provide lhs and rhs; studies of graded phenomena (e.g. CRDC marginality, [OL23]) override the judgments with the appropriate Judgment constructor.

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

      Collection of minimal pairs for a phenomenon.

      • name : String
      • pairs : List MinimalPair
      • generalization : String
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Features.MinimalPairs.predictionAgrees (predicted : Bool) :
          JudgmentBool

          Whether a Bool-valued grammaticality prediction agrees with a Judgment. Categorical predicates can only adjudicate the endpoints of the scale; for graded judgments (.marginal, .questionable, .unacceptable) the predicate is treated as vacuously consistent, since a Bool theory is not equipped to make those distinctions.

          Equations
          Instances For
            def Features.MinimalPairs.capturesMinimalPairBy (pred : List WordBool) (pair : MinimalPair) :
            Bool

            Check if a grammaticality predicate captures a minimal pair.

            Captures iff the predicate's Bool result agrees with each side's Judgment per predictionAgrees. With default judgments this is the traditional pred lhs && !pred rhs.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def Features.MinimalPairs.capturesPhenomenonData (pred : List WordBool) (phenom : PhenomenonData) :
              Bool

              Check if a grammaticality predicate captures all minimal pairs in a phenomenon dataset.

              Equations
              Instances For

                String-based (theory-neutral) #

                String-based minimal pair for theory-neutral phenomena.

                Unlike MinimalPair which uses List Word (requiring feature specifications), this type uses raw strings that can be parsed by any theory. This keeps empirical data free from theoretical commitments.

                • grammatical : String

                  The grammatical sentence

                • ungrammatical : String

                  The ungrammatical sentence

                • clauseType : ClauseForm

                  Clause form (declarative, question, etc.)

                • description : String

                  Description of what the pair tests

                • citation : String

                  Citation for the data; empty string for uncited examples.

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

                      String-based phenomenon data for theory-neutral representation.

                      This is the string-based analogue of PhenomenonData. Data files should use this type so that empirical data is decoupled from any particular grammatical theory's representation.

                      • name : String

                        Name of the phenomenon

                      • pairs : List SentencePair

                        List of minimal pairs

                      • generalization : String

                        Generalization captured by this data

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