We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e59351 commit d6c460aCopy full SHA for d6c460a
greek_accentuation/accentuation.py
@@ -136,12 +136,12 @@ def on_penult(w, default_short=False):
136
return pre + add_accent(s, PAROXYTONE)
137
138
139
-def persistent(w, lemma):
+def persistent(w, lemma, default_short=False):
140
w = w.replace("|", "")
141
142
place, accent = get_accent_type(lemma)
143
s = syllabify(w)
144
- possible = list(possible_accentuations(s))
+ possible = list(possible_accentuations(s, default_short=default_short))
145
place2 = len(s) - len(syllabify(lemma)) + place
146
accent_type = (place2, accent)
147
if accent_type not in possible:
0 commit comments