Refactored autoscan_greek.py for CLTK
✓ Published0🌍 Public
TTylerKirby
Last edited Aug 5, 2015
Created on Aug 5, 2015
This visualization demonstrates the prosimetric scansion of Ancient Greek texts by tokenizing cleaned input into sentences and syllables, then applying quantitative metrical rules to classify each syllable as long or short. The Python program uses the CLTK-inspired `ScansionGreek` class, which handles accent stripping, punctuation removal, and diphthong/vowel-length detection through custom character lists and replacement dictionaries. It relies on standard Python string operations and list comprehensions to process the text, with the final output showing the scansion patterns for each sentence. The code also includes a unittest framework for testing the scansion logic.
AI-generated description