Skip to content

Commit d6c460a

Browse files
committed
support default_short on persistent
1 parent 2e59351 commit d6c460a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

greek_accentuation/accentuation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ def on_penult(w, default_short=False):
136136
return pre + add_accent(s, PAROXYTONE)
137137

138138

139-
def persistent(w, lemma):
139+
def persistent(w, lemma, default_short=False):
140140
w = w.replace("|", "")
141141

142142
place, accent = get_accent_type(lemma)
143143
s = syllabify(w)
144-
possible = list(possible_accentuations(s))
144+
possible = list(possible_accentuations(s, default_short=default_short))
145145
place2 = len(s) - len(syllabify(lemma)) + place
146146
accent_type = (place2, accent)
147147
if accent_type not in possible:

0 commit comments

Comments
 (0)