Skip to content

[Bug]: Wrong syllable count #195

@stribor14

Description

@stribor14

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions