Pragmatics examines how language is used in real-world situations, considering contextual factors and implications.