CCG Bridge: Agreement Phenomena #
Connects string-based Agreement phenomena to CCG derivations.
This module demonstrates the Bridge pattern:
- String data lives in
Phenomena/Agreement/Basic.lean - Lexical entries live in
Fragments/English/ - This module connects them via CCG interpretation
Architecture #
Phenomena.Agreement.data ← Pure 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.
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
- One or more equations did not get rendered due to their size.
- Phenomena.Agreement.Studies.CCGAgreement.tryDerive entries = none
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.