Elamur Research⌕
☰
home / papers / 2013 / Recognition of Classical Arabic Poems

Recognition of Classical Arabic Poems

Paper · 2013 · Abdulrahman Almuhareb, Ibrahim Alkharashi, Lama AL Saud et al.

Summary

The paper addresses finding classical Arabic poetry inside arbitrary text, such as web pages, forums and blogs. In these sources poems have no dedicated markup, follow inconsistent layouts and are mixed with prose. The authors build a rule-based detector around traits of the classical form:

  • verses split into two hemistiches of roughly equal length;
  • a single end-rhyme shared by every verse, with simple letter and vowel equivalences;
  • three common layouts on the page;
  • poets rarely reuse the same word at the start or end of verses.

The detector scans lines and groups consecutive ones of similar length. It splits lines that carry a mid-line separator and looks for runs that share a rhyme. It also repairs common typing defects and applies extra pruning to short candidates. The test set was built from 100 web pages, half containing poems and half not. On it the method reached 96.94% precision and 92.24% recall, measured on output lines. The detector was also plugged into a crawler to build a poem-only search engine. The work shows that a small set of transparent form constraints can reliably pull structured literary text out of noisy sources.

Key points

  • Evaluation data: 50 positive pages (5 poets, the top 10 Google hits each) and 50 negative pages, converted to plain text with Apache Tika. The result is about 23K non-empty lines holding 161 poem instances and 4,740 half-verses.
  • Results: 96.94% precision and 92.24% recall. Both are computed over half-verse lines, comparing the system output against a gold model.
  • Word-reuse study (134 poems):
    • 22% of poems contain a repeated start word and 31% a repeated end word.
    • Per verse, the chance of a repeat is only about 3% for start words and 4% for end words.
  • Pipeline and limits:
    • Lines are kept only if they have 2–20 words, and line lengths are compared with a 40% difference tolerance.
    • All layouts are normalized to one canonical shape.
    • Meter (Al-Khalil's 15+1 system) is not used.
    • Single-verse poems cannot be detected.
  • Pruning and prototype:
    • Pruning was compared at levels 0, 2, 3, 4 and 4*. In 4*, the duplicate-word test is applied to every candidate rather than only to short ones.
    • The prototype search engine extends the HTML parser of Apache Nutch and indexes with Solr.

Interesting ideas

  • I1. Repetition as the trigger: Detection fires only when a pattern recurs across consecutive units (shared rhyme, similar length), so evidence piles up with each extra verse and isolated coincidences are ignored.
  • I2. Group consistency over local noise: When verses share a rhyme but their separators differ or are missing in some lines, the group's agreement decides whether those marks are separators or just punctuation.
  • I3. Stricter tests only where evidence is thin: Extra checks are applied to short candidates (two to four verses), where chance matches are likelier, while long candidates pass on accumulated evidence.
  • I4. Longest consistent solution wins: When several overlapping rhyme-based segmentations are possible, the one yielding the longest poems is chosen. This is a simple, explainable tie-break rule.
  • I5. Negative pages in the test set: Half the evaluation pages contain no poems at all, so false positives on ordinary text are measured directly, and scoring is done per output line.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (tokens): Before tokenization, recognize lists, tables or verse blocks by repeated line-level patterns, so they are not parsed as ordinary run-on sentences.
  • I2 (learn): Self-induced repair rules could treat an attachment or label that conflicts with a strongly consistent group of parallel structures as an error to fix.
  • I3 (learn): Silver data could go through additional filters only for short sentences or items with weak witness-parser agreement, rather than filtering everything equally.
  • I4 (tokens): Ambiguous multiword-expression or segmentation choices could use a similar maximal-coverage preference that is recorded as an explicit reason.
  • I5 (learn): Detectors such as irony or speech-act recognizers could be evaluated with pools of texts known to lack the phenomenon, as negative controls.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

 Fields, topics and concepts

Cite

Cite as Abdulrahman Almuhareb, Ibrahim Alkharashi, Lama AL Saud and Haya Altuwaijri. 2013. Recognition of Classical Arabic Poems. Proceedings of the Workshop on Computational Linguistics for Literature.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{almuhareb2013recognition,
  title = {{Recognition of Classical Arabic Poems}},
  author = {Abdulrahman Almuhareb, Ibrahim Alkharashi, Lama {AL Saud} and Haya Altuwaijri},
  booktitle = {Proceedings of the Workshop on Computational Linguistics for Literature},
  year = {2013},
  url = {https://aclanthology.org/W13-1402/}
}

References

14 references, 0 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Al-Zahrani, A.K., Elshafei, M., 2010. Arabic poetry meter identification system and method. Patent Application US 2010/0185436. find
  2. Hamidi, S., Razzazi, F., Ghaemmaghami, M.P., 2009. Automatic Meter Classification in Persian Poetries Using Support Vector Machines. Presented at the IEEE International Symposium on Signal Processing and Information Technology (ISSPIT). find
  3. He, Z.-S., Liang, W.-T., Li, L.-Y., Tian, Y.-F., 2007. SVM-Based Classification Method for Poetry Style. Presented at the Sixth International Conference on Machine Learning and Cybernetics, Hong Kong. find
  4. Kao, J., Jurafsky, D., 2012. A Computational Analysis of Style, Affect, and Imagery in Contemporary Poetry, in: In Proceedings of the NAACL-HLT 2012 Workshop on Computational Linguistics for Literature. Montreal, Canada, pp. 8–17. find
  5. Maling, J., 1973. The theory of classical Arabic metrics (dissertation). ↗
  6. Manurung, H.M., 2004. An Evolutionary Algorithm Approach to Poetry Generation (PhD thesis). find
  7. Netzer, Y., Gabay, D., Goldberg, Y., Elhadad, M., 2009. Gaiku: Generating Haiku with Word Associations Norms. Presented at the Workshop on Computational Approaches to Linguistic Creativity (CALC ’09). find
  8. Palva, H., 1993. Metrical problems of the contemporary Bedouin Qasida: A linguistic approach. Asian Folklore Studies 52, 75–92. ↗
  9. Paoli, B., 2001. Meters and Formulas: The Case of Ancient Arabic Poetry. Belgian Journal of Linguistics 15, 113–136. find
  10. Reddy, S., Knight, K., 2011. Unsupervised Discovery of Rhyme Schemes. Presented at the 49th Annual Meeting of the Association for Computational Linguistics, Portland, Oregon, pp. 77–82. find
  11. Swets, J.A., 1969. Effectiveness of information retrieval methods. American Documentation 20, 72–89. ↗
  12. Tizhoosh, H.R., Dara, R.A., 2006. On Poem Recognition. Pattern Analysis and Applications, Springer 9, 325–338. ↗
  13. Tizhoosh, H.R., Sahba, F., Dara, R., 2008. Poetic Features for Poem Recognition: A Comparative Study. Journal of Pattern Recognition Research 3. ↗
  14. Yi, Y., He, Z.-S., Li, L.-Y., Yu, T., 2004. Studies on Traditional Chinese Poetry Style Identification. Presented at the Third International Conference on Machine Learning and Cybernetics, Shanghai. find

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/almuhareb-2013-recognition-classical-arabic-poems/