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

Add h to positional lengthening regex

parent cebb3a31
No related branches found
No related tags found
No related merge requests found
......@@ -380,7 +380,7 @@ def muta_cum_liquida(verse):
def positional_lengthening(verse):
pl_regex = re.compile(r'[aeiouv](((([bcdfgjklmnprstvwxz]|(qu))[,.!?]?\s?){2,})|[xz])', flags=re.IGNORECASE)
pl_regex = re.compile(r'[aeiouv](((([bcdfgjklmnprstvwxz]h?|(qu))[,.!?]?\s?){2,})|[xz])', flags=re.IGNORECASE)
if re.search(pl_regex, verse.text):
matches = re.finditer(pl_regex, verse.text)
......
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