Skip to content

Don't require a period at the end of a line for Scansion().scan_text() #1247

Open
@sjhuskey

Description

@sjhuskey

Is your feature request related to a problem? Please describe.
The Scansion().scan_text() method won't produce a result unless the text string to be scanned ends in a period ('.').

Describe the solution you'd like
It would be helpful to allow the user to specify the delimiter. In my case, I'd like to use the newline character (e.g., \n) so that I can scan multiple lines of poetry.

Describe alternatives you've considered
I have resorted to inserting a period at the end of every line, but that's tedious. It's also problematic if you're trying to study the relationship between line breaks and sentence termination.

Additional context
None.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions