Skip to content
Snippets Groups Projects
Commit 70f42d3f authored by Victor Zimmermann's avatar Victor Zimmermann
Browse files

Fix diphthongs

parent b40e9de6
No related branches found
No related tags found
No related merge requests found
......@@ -286,8 +286,9 @@ def get_unknown_syllables(token):
res.append(Syllable("e",[res[-1].span[0]+1, res[-1].span[1]]))
for i in range(len(res)-1):
if re.match("[^aeiou]", res[i].text) and re.match("[^aeiou]", res[i+1].text):
if re.match("[aeiou]", res[i].text) and re.match("[aeiou]", res[i+1].text):
res[i].syllable_length = 2
res[i+1].syllable_length = 2
return res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment