pds
Copyright(c) Julian Grove and Aaron Steven White 2025
LicenseMIT
Maintainerjulian.grove@gmail.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

Framework.Grammar.CCG

Description

CCG types are defined and used to type strings, analogously to the way λ-terms are typed.

Synopsis

Expressions and grammatical categories

type Expr = [Word] Source #

data Cat Source #

Constructors

Base String 
Cat :/: Cat infixl 9 
Cat :\: Cat infixl 9 

Instances

Instances details
Show Cat Source # 
Instance details

Defined in Framework.Grammar.CCG

Methods

showsPrec :: Int -> Cat -> ShowS #

show :: Cat -> String #

showList :: [Cat] -> ShowS #

Eq Cat Source # 
Instance details

Defined in Framework.Grammar.CCG

Methods

(==) :: Cat -> Cat -> Bool #

(/=) :: Cat -> Cat -> Bool #

(//) :: Cat -> Cat -> Cat Source #

(\\) :: Cat -> Cat -> Cat Source #

type Lexicon m = Word -> [m] Source #

data Project Source #

Constructors

Adjectives 
Factivity 

class Interpretation (p :: Project) m where Source #

Methods

lexica :: [Lexicon m] Source #

combineR :: m -> m -> [m] Source #

combineL :: m -> m -> [m] Source #