The whole hour of this Lingthusiasm podcast episode (#98) is fascinating — Helping computers decode sentences. The part about pragmatics, especially so:
if you really want the computer to behave the same way that a person would behave if they heard something and understood it, then you need way more than linguistics. …
if we want to get to “Okay, but what did the person mean by saying that? How does that fit in with what we’ve been discussing so far…?” that’s a whole other set of problems – that’s called “pragmatics”