Loading allzweckmesser/scanner.py +2 −2 Original line number Diff line number Diff line Loading @@ -170,9 +170,9 @@ def get_syllables_for_token(token: Token): syllables = [] if token.accented: regex = ( r'((?:ua|ue|ae|oe|au|eu|yi|[aeiouy])[_^]?)' r'((?<!q)(?:ua|ue|ae|oe|au|eu|yi|[aeiouy])[_^]?)' if token.text[0].isupper() else r'((?:ua|ue|ae|oe|au|[aeiouy])[_^]?)' else r'((?<!q)(?:ua|ue|ae|oe|au|[aeiouy])[_^]?)' ) accented = (token.accented + token.clitic if token.clitic Loading Loading
allzweckmesser/scanner.py +2 −2 Original line number Diff line number Diff line Loading @@ -170,9 +170,9 @@ def get_syllables_for_token(token: Token): syllables = [] if token.accented: regex = ( r'((?:ua|ue|ae|oe|au|eu|yi|[aeiouy])[_^]?)' r'((?<!q)(?:ua|ue|ae|oe|au|eu|yi|[aeiouy])[_^]?)' if token.text[0].isupper() else r'((?:ua|ue|ae|oe|au|[aeiouy])[_^]?)' else r'((?<!q)(?:ua|ue|ae|oe|au|[aeiouy])[_^]?)' ) accented = (token.accented + token.clitic if token.clitic Loading