Pragmatics examines how contextual factors influence language use, including the role of social context and inference.