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

Slightly change regex in generate_synizesis

parent 66973f50
No related branches found
No related tags found
No related merge requests found
......@@ -432,7 +432,8 @@ def generate_synizesis(reading):
other_syl = token.syllables[i+1]
new_text = syl.text+other_syl.text
match = re.search(r'[aeiouvy]h?[aeiouvy]', new_text)
match = re.search(r'(?<!q)[aeiouvy]h?[aeiouvy]', new_text,
flags=re.IGNORECASE)
if match:
in_syllables = match.start() < len(syl.text) < match.end()
......
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