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.
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.
But not checking about enbug.