Digital humanities · Software engineering
Searching for Poetry in Latin Prose
A research tool developed for the Leiden University Centre for the
Arts in Society (LUCAS) to help uncover possible hidden poetry
fragments in classical Latin prose.
- Purpose
- Detect poetic fragments hidden in Latin prose
- Analysis engine
- LSTM-based AI model
- Supported meters
- Hexameter, pentameter, iambic, trochaic, and more
Hidden poetry detection
Finding poetic rhythm inside continuous prose
Classical prose may contain embedded or unattributed quotations
from poetry. Finding them manually requires researchers to inspect
large amounts of text syllable by syllable. This tool scans Latin
prose automatically and extracts fragments that resemble poetic
meter, directing attention to the most promising candidates.
Users can paste prose directly or upload a text file, making the
application suitable for both quick experiments and longer textual
datasets. Detected candidates can then be reviewed, filtered, and
exported for further academic analysis.
Scansion engine
Transforming text into metrical patterns
At the centre of the system is an LSTM neural network that assigns
scansion labels to Latin text fragments. It predicts whether
syllables are long, short, or an elision, transforming prose into
a sequence that can be compared with known poetic patterns.
Each candidate is presented with its predicted meter, metrical
distance, confidence information, and syllable-level markings.
Long syllables, short syllables, elisions, and uncertain areas are
highlighted directly in the text so Latinists can inspect why a
passage was selected rather than treating the model as a black
box.
Technology
An analysis pipeline made accessible on the web
The final product connects an Angular frontend to a Flask backend
and PyTorch model, turning a computational scansion pipeline into a
research interface for Latinists without programming experience.
PyTorch · Angular ·
TypeScript · Flask ·
Python · GitHub Projects ·
Scrum
Personal contribution: my work focused on the Angular application
structure, analysis page, filtering and export controls, and overall
frontend management.