resolucao-correferencia-e-aliases-literarios

Resolves pronoun references and character name aliases into canonical entity IDs in Portuguese fiction.

Updated Jul 19, 2026
One-click install
npx skills add https://github.com/Ryanzucchi/Eldritch_Lich --skill resolucao-correferencia-e-aliases-literarios-ryanzucchi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: resolucao-correferencia-e-aliases-literarios
Source: https://github.com/Ryanzucchi/Eldritch_Lich/tree/main/.agents/skills/resolucao-correferencia-e-aliases-literarios
Command: npx skills add https://github.com/Ryanzucchi/Eldritch_Lich --skill resolucao-correferencia-e-aliases-literarios-ryanzucchi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Long narrative texts refer to the same character through full names, partial aliases, epithets, and pronouns, making it impossible to build accurate character networks or track who participates in each scene without manual annotation. ## Core Features & Use Cases - Alias Unification: Merges partial name mentions (e.g., "Sra. Silva") with canonical characters ("Helena Silva") using Jaro-Winkler string similarity with a configurable threshold. - Pronoun Resolution: Maps third-person pronouns to character antecedents using a sliding sentence window, syntactic dependency roles, and an agency scoring heuristic. - Cooccurrence Graph Disambiguation: Breaks ambiguous ties by consulting the scene-level entity cooccurrence network and selecting the most central character. - Use Case: After running NER on a novel chapter, feed the extracted entities into this pipeline to assign every mention a canonical_id, then generate the chapter's character social network automatically. ## Quick Start Run coreference resolution on the NER output from this chapter and assign each character mention and pronoun its canonical entity ID.

Frequently Asked Questions about resolucao-correferencia-e-aliases-literarios

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

FAQPage Schema
How do I resolve pronouns to characters in Portuguese novels?▼

Use a sliding window of the previous 7 sentences to find candidate PERSON entities, then score them by syntactic agency: subjects of speech verbs get +2.0, subjects of physical actions +1.5, and objects +0.5. The highest combined score wins the pronoun link.

How to unify character name variations in fiction text?▼

Compare each detected name against canonical entities using Jaro-Winkler similarity with a default threshold of 0.85. Matches like "Sra. Silva" to "Helena Silva" are merged under the same canonical_id automatically.

What is needed before running literary coreference resolution?▼

You need structured JSON output from a named entity recognition step containing entity text, category, and character offsets, plus a Portuguese dependency parser such as UDPipe or an adapted SpaCy model for subject and object role extraction.

Why does pronoun resolution fail in dialogue-heavy scenes?▼

Scenes with multiple same-gender speakers create ambiguous candidates within the sentence window. When the top two scores differ by less than 0.15, the system consults the scene's cooccurrence graph and picks the character with highest centrality.

What accuracy does literary coreference resolution achieve?▼

The validation target is a minimum F1-score of 75% on alias clustering using an adapted LitBank Coreference dataset. Simple nominal ambiguity cases like "Maria Silva" and "Sra. Silva" must merge into one canonical_id in 100% of regression tests.