by guerrilla · 1y ago · 0 comments
and : Phrase \ Conjunction / Phrase
do : Subject \ Verb / Object
Sorry if I have the directionality wrong but `and` would take a phrase on the left, another on the right abd return a conjunction. `do` would take an Subject and an Object and return a verb. In STLC it would look like this: and : Phrase -> Phrase -> Conjunction
do : Subject -> Object -> Verb
These are bad examples just for illustrations, consult real linguists.Last time I looked at it they were adding polymorphism and a couple of people were starting to think about dependent types. It was mostly linguists interested in it but it was hardcore math and CS. Can't remember the names involved. Carl H. I forget what the H stands for. Hmm. Some fanous type theorists had written about them too.
Anyway, seemed relevant.
This is famously used in interpreting the status of "Socrates is mortal" ("Socrates" is the argument) and "Every man is mortal" ("is mortal" is the argument).
A good starting point is https://en.wikipedia.org/wiki/Combinatory_categorial_grammar