Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore all and splity by all whitespace characters where expected #161

Merged
merged 2 commits into from
Aug 12, 2021

Conversation

LKirst
Copy link
Contributor

@LKirst LKirst commented Aug 12, 2021

The method syllable_count used split(' ') and not split()
and thus didn't split by newline characters.
The methods char_count and letter_count didn't substitute newlines. Now
a regex for all whitespace characters is used.

Fix #158

LKirst and others added 2 commits August 12, 2021 12:33
The method syllable_count used split(' ') and not split()
and thus didn't split by newline characters.
The methods char_count and letter_count didn't substitute newlines. Now
a regex for all whitespace characters is used.
changes to char_count, letter_count, and syllable_count mean some tests
are failing
@alxwrd
Copy link
Member

alxwrd commented Aug 12, 2021

@LKirst, thank you for this. I've pushed some changes to the tests as this change changes some results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

textstat.syllable_count(text) doesn't split by newlines
2 participants