Relevance Theory and/or Gricean pragmatics; Chomsky on language and mind; and related parts of philosophy of language, philosophy of mind, cognitive psychology, formal semantics and logic.
Today's XKCD is really about pragmatics, I think, given that ‘constructive and helpful’ is a pretty good synonym for ‘relevant’.
There are a lot of other XKCDs that are really about pragmatics. One day I'll post a list.