computational-pragmatics

Classify utterances by speech act type using transformer-based zero-shot classification.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill computational-pragmatics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: computational-pragmatics
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/12-linguistics/computational-pragmatics
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill computational-pragmatics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Computational pragmatics helps you go beyond literal sentence meaning by analyzing what speakers intend, what they imply indirectly, and how they manage social interaction cues like politeness and face.

Core Features & Use Cases

  • Speech act classification: Identify illocutionary force such as assertions, directives, questions, commissives, and expressives using transformer-based NLP or fallback heuristics.
  • Implicature & discourse-aware analysis: Detect likely implicature signals and patterns that arise from Gricean maxim violations (e.g., quantity, manner, hedging).
  • Politeness and coherence signals: Extract politeness/hedging features and analyze dialog structure through adjacency pairs and turn transitions for conversation analysis.

Quick Start

Use the skill to analyze a chat excerpt for speech acts, politeness cues, and adjacency-pair structure by running the provided Python workflow on your text.

Frequently Asked Questions about computational-pragmatics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I classify speech acts in dialogue using transformer NLP?

Speech act classification identifies illocutionary force like assertions and directives using transformer-based zero-shot NLP. The skill applies candidate labels to tag utterances and provides rule-based fallbacks for scenarios lacking trained models.

What is computational pragmatics analysis for implicature detection?

Computational pragmatics analyzes implied meaning by detecting Gricean maxim violations like quantity and manner. The skill identifies hedging patterns and implicature signals to infer indirect requests and unstated speaker intentions in conversation.

Can I score politeness and hedging features in social media conversations?

Yes, politeness and hedging scoring extracts social interaction cues from real-world text. The skill computes feature-level outputs for downstream analytics, quantifying face-management strategies used in interviews and social media dialogue.

How do I analyze discourse coherence and adjacency pairs in interviews?

Discourse coherence analysis maps conversational structure through adjacency pairs and turn transitions. The skill identifies how utterances connect sequentially, revealing the underlying organization of dialogue in interview transcripts and chat logs.

Does this skill work without a pre-trained dialog act classification model?

Yes, the skill implements zero-shot classification with candidate labels, eliminating the need for a pre-trained dialog act model. It also provides rule-based fallback heuristics to ensure baseline speech act tagging functionality.

What are the limitations of zero-shot classification for indirect request detection?

Zero-shot classification for indirect request detection depends on candidate label quality and may miss nuanced implicature. Rule-based fallbacks provide baseline coverage but lack the deep contextual understanding needed for highly ambiguous discourse.