Skip to content

Conversation

marcas756
Copy link
Contributor

CHANGES

  • Define character extraction goals and steps
  • Specify canonical naming and deduplication rules
  • Outline interaction mapping and narrative importance
  • Provide output schema with formatting guidelines
  • Include positive/negative examples for clarity
  • Enforce no speculative motivations or non-actors
  • Set fallback for no characters found

What this Pull Request (PR) does

  1. Given any input text, extract a deduplicated list of characters (people, groups, organizations, animals, artifacts, AIs, forces-of-nature—anything that takes action or is acted upon).
  2. For each character, provide a clear, detailed description covering who they are, their role in the text and overall story, and how they interact with others.

Related issues

Screenshots

Input :

pg1513.txt (Romeo&Juliet)

Output :

**Romeo **
Romeo Montague is the young heir of the Montague family, the central protagonist of the play. He is a passionate, impulsive lover who falls deeply for Juliet Capulet, leading to a series of tragic events. Romeo interacts with nearly every major character: he quarrels with Tybalt, seeks guidance from Friar Lawrence, confides in his friends Benvolio and Mercutio, and ultimately marries Juliet in secret. His actions—killing Tybalt, fleeing Verona, and taking his own life—drive the plot toward its fatal conclusion.

**Juliet **
Juliet Capulet is the teenage daughter of the Capulet family and the play’s female lead. She secretly marries Romeo, defying her family’s feud. Juliet’s interactions include her clandestine meetings with Romeo, her conversations with her Nurse, and her final act of suicide after discovering Romeo’s death. Her decisions and love for Romeo propel the narrative toward tragedy.

...

CHANGES
- Define character extraction goals and steps
- Specify canonical naming and deduplication rules
- Outline interaction mapping and narrative importance
- Provide output schema with formatting guidelines
- Include positive/negative examples for clarity
- Enforce no speculative motivations or non-actors
- Set fallback for no characters found
@marcas756 marcas756 changed the title feat: add extract_characters system definition feat: add extract_characters pattern Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant