You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In two cases elisions are not performed correctly:
Whenever em at the end of the word meets a vowel in the next word.
Whenever an elision should take place, h at the beginning of a word is treated as ordinary consonant.
To Reproduce Bug 1
Steps to reproduce the behavior:
fromcltk.prosody.lat.hexameter_scannerimportHexameterScannerhexameter_scanner=HexameterScanner()
verse1="quem quidem ego actutum (modo vos absistite) cogam"print(hexameter_scanner.scan(verse1).working_line)
# Out: quēm quidem eg āctutūm modo vos ābsīstite cogam# Should be: quēm quid eg āctutūm modo vos ābsīstite cogamverse2="Qui potis est, inquis? Quod amantem iniuria talis"print(hexameter_scanner.scan(verse2).working_line)
# Out: Qui potis ēst īnquīs Quod amāntem īnjuria talis# Should be: Qui potis ēst īnquīs Quod amānt īnjuria talisverse3="ille, datis vadibus qui rure extractus in urbem est"print(hexameter_scanner.scan(verse3).working_line)
# Out: īlle datīs vadibūs qui rur ēxtrāctus in ūrbem ēst# Should be: īlle datīs vadibūs qui rur ēxtrāctus in ūrb ēst
To Reproduce Bug 2
verse4="non potuisse, tuaque animam hanc effundere dextra"print(hexameter_scanner.scan(verse4).working_line)
# Out: nōn potuisse tuaqu animam hānc ēffūndere dēxtra# Should be: nōn potuisse tuaqu anim ānc ēffūndere dēxtraverse5="perque hiemes aestusque et inaequalis autumnos"print(hexameter_scanner.scan(verse5).working_line)
# Out: pērque hiemes aestūsqu et inaequalis autūmnos# Should be: pērqu iemes aestūsqu et inaequalis autūmnosverse6="monstrum horrendum, informe, ingens, cui lumen ademptum"print(hexameter_scanner.scan(verse6).working_line)
# Out: mōnstr hōrrēnd īnfōrm īngēns cui lumen adēmptum# Should be: mōnstr ōrrēnd īnfōrm īngēns cui lumen adēmptum
The same bugs occur with VerseScanner:
fromcltk.prosody.lat.verse_scannerimportVerseScannerverse_scanner=VerseScanner()
print(verse_scanner.elide_all(verse1))
# Out: quem quidem eg actutum modo vos absistite cogamprint(verse_scanner.elide_all(verse2))
# Out: Qui potis est inquis Quod amantem iniuria talisprint(verse_scanner.elide_all(verse3))
# Out: ille datis vadibus qui rur extractus in urbem est
Environment:
CLTK 1.0.17 in different environments
Additional context
Elision rules are specified here (unfortunately in german) and here
The text was updated successfully, but these errors were encountered:
Describe the bug
In two cases elisions are not performed correctly:
To Reproduce Bug 1
Steps to reproduce the behavior:
To Reproduce Bug 2
The same bugs occur with VerseScanner:
Environment:
Additional context
Elision rules are specified here (unfortunately in german) and here
The text was updated successfully, but these errors were encountered: