Skip to content

"blue" is counted 0 syllable. #2

Description

@ShinyaAkagiI

Hello, "blue" is counted 0 syllable.

numVowels = 2, disc = 2, syls = 0, and then 2 - 2 + 0 = 0.
In step 3, disc added 1 by existing trailing e.
In step 4, disc added 1 by existing consecutive vowels.

I solve this bug, checking whether the tailing e is contained consecutive vowels, In step 3.

if word[-1:] == "e" :
        if word[-2:] == "le" and word not in le_except :
            pass

        #bugfix for counting syllable 0 in "blue" "blaue"
        elif word[-2] in "eaoui":
            pass

        else :
            disc+=1

But not checking about enbug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions