Documentation

Linglib.Phenomena.Agreement.Studies.CCGAgreement

CCG Bridge: Agreement Phenomena #

Connects string-based Agreement phenomena to CCG derivations.

This module demonstrates the Bridge pattern:

  1. String data lives in Phenomena/Agreement/Basic.lean
  2. Lexical entries live in Fragments/English/
  3. This module connects them via CCG interpretation

Architecture #

Phenomena.Agreement.dataPure strings: "he sleeps" ✓
       ↓ (parse via Lexicon)
Fragments.English.Lexicon ← Unified lookup
       ↓ (interpret via FromFragments)
CCG.FromFragments ← VerbEntry → CCG.Cat
       ↓ (derive)
CCG.DerivStep ← Syntactic derivation

Parse a sentence string to CCG lexical entries.

Uses the unified lexicon from Fragments/English/Lexicon.lean and interprets results via CCG.FromFragments.

Equations
Instances For

    Attempt to build a simple CCG derivation from a list of lexical entries.

    This is a simplified version that handles basic subject-verb structures. A full implementation would use chart parsing or similar.

    Equations
    Instances For

      Check if CCG can derive a sentence string.

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

        Check if CCG captures a sentence pair (derives good, blocks bad).

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