Read the paper
A Lattice-Based HMM Approach to Aruz Scansion of Ottoman Poetry
on GitHub
TEST LINES
+77.6%
AVAILABLE RULE-BASED
+26.8%
NEURAL TAGGER
+55.0%
CLAUDE OPUS
+63.6%
Imagine you're trying to figure out the rhythm of a song, but someone handed you the lyrics in a different alphabet that dropped half the timing marks. You know the song has to fit one of about 30 possible beat patterns, and each word could be chopped into syllables several different ways. Your job is to simultaneously guess the beat pattern AND figure out which syllable-chopping makes the words land on the right beats. That's aruz scansion of Ottoman poetry from modern Turkish spelling — and this paper builds a surprisingly old-school machine to do it well. The committed claim: a lattice-based hidden Markov model, trained by expectation-maximization from printed meter labels alone (no scansion annotations), achieves 77.6% full-line-correct scansion on Ottoman Divan poetry written in modern Turkish orthography. This triples the 26.8% of the existing rule-based scanner, beats a neural sequence tagger at 55.0% given identical supervision, and outperforms Claude Opus 5.5 few-shot prompting at 63.6%. The key structural insight is that the ambiguity in this problem — multiple valid syllabifications per word, multiple candidate meters per poem — is better handled by exhaustive lattice enumeration than by neural pattern matching or LLM reasoning. The architecture is a classical HMM where hidden states are positions within a meter pattern, observations are syllable weight sequences, and the decode runs over a lattice of every candidate syllabification path. Training uses EM: the only supervision is the poem's declared meter (which tells you the expected weight pattern), not the actual alignment of weights to syllables. This is elegant because it converts a sequence-labeling problem into a structured search problem. The lattice handles the combinatorial explosion of possible syllabifications by keeping all candidates alive until Viterbi decoding picks the best path. No GPU required — this is a CPU model with a handcrafted feature set rooted in Ottoman phonology. The corpus is 52,000 lines from multiple poets, split by poet to prevent leakage, with 500 hand-annotated test lines for scansion evaluation. Critically, the authors also build a robustness benchmark by injecting character-level noise at rates measured from real web and OCR copies of Ottoman texts. The baselines are honest: the rule-based system is the only publicly available alternative, the neural tagger (BiLSTM-CRF, from context) gets the same weak supervision, and Claude Opus 5.5 gets few-shot examples — a strong modern baseline. The model wins decisively on all comparisons. Integrity is solid but bounded. The 500-line test set is hand-annotated but by whom and with what inter-annotator agreement is not stated in the abstract. The poet-split prevents the most obvious leakage. The robustness benchmark is a genuinely useful contribution — OCR noise is the real deployment enemy for any digitized-poetry tool. Code is open-sourced and the tool is live on the web, which is the gold standard for reproducibility in computational humanities. The milestone that matters: 77.6% full-line accuracy means roughly one in four lines still has at least one scansion error. For a scholarly tool, the threshold is probably 90%+ before a Ottomanist trusts the output without manual review. The gap from 77.6% to 90% is where the hard cases live — rare meters, dialectal pronunciation, deliberate poetic license. The paper's own annotation of 'flaws and freedoms the poet has taken' suggests the authors know this is where the ceiling lives. The obvious next experiment not run: testing on Ottoman script directly, where the diacritical and character information the model currently lacks would be available. The authors explicitly chose the harder problem (modern Turkish spelling without scholarly transliteration marks), which is the right move for a practical tool — but it means the model's accuracy ceiling is artificially lowered by information loss at the input. The likely reason this wasn't run: the corpus is in modern Turkish, and building a parallel Ottoman-script corpus with scansion annotations is a separate multi-year project.
The analogy
Imagine you're listening to a song through a wall and trying to figure out both the time signature AND where each syllable falls on the beat — but you only know the song is in 4/4 or 3/4 or one of 28 other possible meters. The HMM tries every possible way to chop the muffled lyrics into beats, scores them all simultaneously, and picks the best-fitting rhythm. That's what the lattice does: it holds every candidate syllable-to-beat alignment alive until the math picks the winner.
Song through wall
Hearing muffled lyrics and guessing both the time signature and where each syllable lands on the beat
HMM lattice scansion
Taking modern Turkish text and guessing both the aruz meter and where each syllable weight aligns to the meter pattern
Honest assessment
A clean win for classical structured models on a well-defined combinatorial problem where weak supervision and information loss handicap neural approaches. The 77.6% result is real and the baselines are honest — beating Claude few-shot by 14 points with a CPU-only HMM is a genuinely interesting result for the structured-vs-learned debate. The ceiling is set by input information loss (modern Turkish vs Ottoman script), not by the algorithm. This matters to computational humanities practitioners today and to anyone thinking about when to reach for an LLM vs a structured model.
What Is CLAIMS?
77
/ 100
BedrockNews applies a structured analytical framework called CLAIMS to academic papers and technical research releases.
How CLAIMS worksClaim
4/5
Ladder
5/5
Architecture
4/5
Integrity
3/5
Milestone
3/5
Successor
4/5
What is this paper actually committing to?
Genuine first for this task formulation. No prior system scanned Ottoman aruz from modern Turkish spelling at this accuracy. Narrow domain but a real committed result with numbers.
The field fight
For low-resource, highly structured linguistic tasks, do classical structured models or neural/LLM approaches win?
Side A
Neural models and LLMs generalize better, even with minimal supervision, because they learn latent representations
Held by: BiLSTM-CRF taggers, GPT/Claude few-shot, transformer sequence labelers
Side B
When the combinatorial structure is well-defined and supervision is weak, classical models with exhaustive search outperform learned approximations
Held by: HMMs, WFSTs, lattice decoders, this paper
Milestone tracker
Unlocks: Automated scansion reliable enough for large-scale computational literary analysis of Ottoman Divan poetry without manual review
Current
77.6
% full-line
this paper (HMM)
Next
90
% full-line
scholar-trust threshold
Unknown — depends on Ottoman-script corpus availability more than algorithmic advances
Verified Facts (8)
77.6% of test lines scanned fully correctly by the HMM model
26.8% for the available rule-based scanner
55.0% for a neural tagger trained with the same supervision
63.6% for Claude Opus 5.5 few-shot
Corpus of 52,000 lines split by poet, with 500 test lines annotated for scansion
Robustness benchmark generated at deviation rates measured on real web and OCR copies
Model is a hidden Markov model trained by EM from the printed meter, without scansion labels
Code open-sourced at https://github.com/MehmetETiryaki/aruz-paper
Practical Implications (3)
Ottomanists can use the live web tool now to get first-pass scansion on digitized poetry collections, cutting manual annotation time significantly even at 77.6% accuracy
The lattice-HMM pattern is directly transferable to other quantitative-meter traditions (Arabic, Persian, Urdu aruz) where the same syllable-weight ambiguity exists
Demonstrates that for low-resource structured-search problems, a well-designed HMM still beats frontier LLMs — useful signal for practitioners choosing between classical and neural approaches
More latest news
Read all