feat: add extract_characters pattern #1780
Open
+83
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CHANGES
What this Pull Request (PR) does
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.
...