-
Notifications
You must be signed in to change notification settings - Fork 184
[Bug]: Wrong syllable count #195
Copy link
Copy link
Closed
Labels
Description
Operating system
Linux
Download source
PyPi
Python distribution
Anaconda
Python version
Python 3.9.6
What happened?
When checking the results, some interesting stuff came to my attention. I was checking the return value of difficult_words for single-word inputs. To skip the part of reading through code, checking the easy_word_list in resources, etc. Here is what I found.
textstat.syllable_count("faeries") = 1
textstat.syllable_count("relived") = 3
both of those words have 2 syllables
Other information
Failing tests
def test_the_bug_i_found():
assert (textstat.syllable_count("faeries") == 2) and (textstat.syllable_count("relived") == 2)Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable