Skip to content
Snippets Groups Projects
Commit bfe7333e authored by Simon Will's avatar Simon Will
Browse files

Fix counting bug in get_syllables

parent 1a482a09
No related branches found
No related tags found
No related merge requests found
......@@ -200,8 +200,8 @@ def get_syllables_for_token(token: Token):
syllables.append(syll)
# Begin info for new syllable.
syll_start = syll_start + len(syll_text)
syll_text = c.rstrip('_^')
syll_start = syll_start + len(syll_text) + 1
else:
# Syllable has no vowel yet.
syll_text += c.rstrip('_^')
......
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