Novel Mining · 小说对话挖掘工作流

Extract speaker-labeled dialogues from Haruhi Suzumiya novel text and compute response probabilities.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/icy-soup/haruhi-skill --skill novel-mining
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Novel Mining · 小说对话挖掘工作流
Source: https://github.com/icy-soup/haruhi-skill/tree/main/skills/workflows/novel-mining
Command: npx skills add https://github.com/icy-soup/haruhi-skill --skill novel-mining

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill turns raw novel text into structured dialogue data and then derives role-to-role response probabilities and addressee/attitude analyses from the original source, reducing manual annotation and subjective tuning.

Core Features & Use Cases

  • Dialogue extraction & speaker annotation: Converts each utterance into JSON with speaker, text, and location metadata (volume/chapter).
  • Probability statistics engine: Computes conditional response matrices and silence/interval thresholds to support downstream chat triggering logic.
  • Addressee inference & relationship analysis: Infers the intended addressee using rule-based multi-turn reasoning and then quantifies attitude/voice traits to produce relationship matrices.
  • Use Case: With the full corpus of the Haruhi Suzumiya novels, generate JSON configuration files and matrices that can power a role-driven multi-character chat engine.

Quick Start

Run the dialogue mining pipeline end-to-end on the full novel text files (volumes 1–13) to produce the annotated dialogue dataset plus probability and relationship matrix outputs.

Frequently Asked Questions about Novel Mining · 小说对话挖掘工作流

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

FAQPage Schema
How do I extract structured dialogue from a novel text for a chat dataset?

To extract structured dialogue from a novel text, this Skill parses raw narrative volumes and converts each utterance into JSON with speaker, text, and location metadata. This structured output serves as a foundation for building role-driven conversational datasets.

What is dialogue addressee inference and how does it work for multi-character novels?

Dialogue addressee inference identifies the intended recipient of each utterance using rule-based multi-turn reasoning. This process analyzes surrounding conversation context to accurately map interaction patterns and build relationship matrices for multi-character systems.

How do I compute conditional response probabilities between characters from a novel corpus?

Computing conditional response probabilities from a novel corpus involves a statistics engine that calculates how likely one character responds to another. It generates probability matrices and silence thresholds to support downstream chat triggering logic.

Can I use this dialogue mining workflow on novels other than Haruhi Suzumiya?

The dialogue mining workflow is designed for the Haruhi Suzumiya novel corpus across all narrative volumes. While the extraction logic applies rule-based inference, adapting it to other novels requires ensuring the raw text format matches the expected input structure.

Do I need external Python libraries to run the novel mining pipeline?

You do not need external Python libraries to run the novel mining pipeline. The Skill relies on Python standard-library-friendly rule inference for addressee detection and processes raw text files to generate JSON annotation outputs and probability results.

What are the limitations of rule-based addressee detection in narrative text?

Rule-based addressee detection in narrative text relies on standard-library inference without external NLP models, which may limit accuracy in highly ambiguous multi-character scenes. It processes explicit contextual cues to infer intended recipients and quantify attitude traits.