Skip to content

Commit

Permalink
Add comment on 3+ consonant syls in latin_word_syllabification.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiller authored Jan 16, 2024
1 parent 1a7c207 commit 5172463
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions volpiano_display_utilities/latin_word_syllabification.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ def _get_syl_bound_position(ltrs_btw_vow_grps: str) -> Tuple[int, str]:
else:
split_case = "2 consonants between vowels (consonant group)"
else:
# in situations where 3 or more consonants are between consecutive vowels,
# group the final two consonants, if possible (amplius -> am-pl-ius). If not,
# group the first two consonants (coniunctos -> con-iunc-tos), if possible. If
# neither the final two nor first two consonants can be grouped, split after
# the first consonant.
if ltrs_btw_vow_grps[1:] in _CONSONANT_GROUPS:
syl_bound = num_ltrs_btw_vow_grps - 2
elif ltrs_btw_vow_grps[:2] in _CONSONANT_GROUPS:
Expand Down

0 comments on commit 5172463

Please sign in to comment.