Skip to content

Over-splitting on quotes with names. #16

@jakepoz

Description

@jakepoz

We are seeing a few issues with segtok being over-eager to split quoted sentences with names directly after the quoted section.

Ex.

"Good morning," said Harry.
"Good morning?" asked Harry.
"Good morning!" exclaimed Harry.

All of those split correctly.
However consider the following variations:

"Good morning," Harry said. -> Correct
"Good morning?" Harry asked. -> Splits into two.
"Good morning!" Harry exclaimed. -> Splits into two.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions