Notes

Pragmatics

"Can you pass the salt?" is, read literally, a question about your physical ability, and nobody answers it with "yes". Pragmatics is the level of language that accounts for the gap: what an utterance is doing, as opposed to what its words denote.

The layer above semantics
Semantics gives a sentence its literal content. Pragmatics adds the speaker, the listener, the moment and the shared history, and that is where a specific set of problems lives:

  • Deixis — "here", "tomorrow" and "she" have no fixed referent; only the situation around the utterance fixes them.
  • Speech acts — a sentence can request, promise, warn or refuse. "It's cold in here" is a report in form and an instruction in function.
  • Implicature — "some of the students passed" invites the inference that not all did, which the literal statement never says.
  • Presupposition — "when did you stop checking the logs?" smuggles in the claim that you once checked them.

Where systems trip on it
A sentiment classifier reading "well, this was exactly what I needed today" has every word right and the meaning inverted, because sarcasm is a pragmatic effect rather than a lexical one. A dialogue system that answers "do you know the time?" with "yes" has parsed perfectly and failed completely. Resolving "it" across turns, deciding whether a speaker is committed to a claim they merely embedded — the CommitmentBank task in SuperGLUE tests exactly this — and knowing that "fine" can mean its opposite all sit here. Handle morphology, syntax and semantics and ignore this level, and you get a system that is fluent and tone-deaf: grammatical output that answers the wrong question.

Pragmatics is the level of language concerned with meaning in context — what a speaker intends an utterance to do, beyond what its words denote. It covers deixis ("here", "tomorrow"), speech acts, implicature and presupposition. A system that handles syntax and semantics but ignores this level misreads sarcasm, indirect requests and implied answers: the parse is correct and the response is still wrong, which is where most conversational failures originate.

If a friend says "it's freezing in here", they are not giving you a weather report — they want you to shut the window. Pragmatics is the study of that gap between what words say and what people mean by them. We cross it without thinking, using who is talking, where we are and what was said a minute ago. Software does not. That is why a chatbot can answer "do you know what time it is?" with a cheerful "yes" and be perfectly correct and completely useless. It is also why sarcasm fools a system that only reads the words: "brilliant, another delay" has not one unhappy word in it.