Module pragmatics

Module pragmatics 

Source
Expand description

Post-parse pragmatic inference transformations.

This module applies pragmatic rules to the parsed logical representation, converting indirect speech acts to their illocutionary force:

  • Polite requests (“Can you X?”) → Imperatives
  • Permission modals with addressee agent → Imperatives

These transformations capture the pragmatic insight that modal questions directed at the addressee often function as requests, not information-seeking.

Functions§

apply_pragmatics
Apply pragmatic transformations to convert indirect speech acts.