cs.CLSep 23, 2026

Beyond Poetry: Can Large Language Models Generate Classical Arabic Maqamat?

Authors: AbdulRahman A. Morsy, Aya Zirikly

Organizations: Department of Computer Science, School of Engineering and Applied Sciences, George Washington University, Washington DC, United States · Center for Speech and Language Processing, Whiting School of Engineering, Johns Hopkins University, Baltimore MD, United States

Abstract

Large language models (LLMs) have shown strong performance in creative text generation, yet their ability to produce culturally grounded and stylistically constrained literary forms remains underexplored. Prior work has focused largely on modern language varieties and poetry, while classical prose traditions such as maqama remain largely unstudied. The maqama is a classical literary genre characterized by rhymed prose (saj), dense rhetorical ornamentation, and episodic narrative structure, making it a challenging testbed for evaluating whether LLMs can move beyond surface fluency toward deeper literary competence. In this paper, we present the first controlled evaluation study of maqama generation with LLMs, comparing five models under zero-shot, few-shot, and rule-based prompting, and evaluating outputs through both human annotation and an LLM-as-a-judge framework across dimensions such as rhetorical richness, saj density, structural coherence, and stylistic authenticity. Our results show that prompting strategy plays a strong role in stylistic quality: few-shot prompting most consistently improves saj density, while its effects on rhetoric and coherence vary by model, with the strongest models (GPT-4o and GPT-5.4-mini) benefiting most from rule-based prompting on these dimensions, though zero-shot prompting yields the highest aggregate scores across all five models. We further observe systematic differences between models in stylistic alignment with Arabic maqama conventions, and corroborate our findings with a second independent LLM judge, paired statistical significance testing, and non-LLM proxy measures of saj.

Explore similar work

CardsList
  1. Instruction-Guided Poetry Generation in Arabic and Its Dialects

    Apr 30, 2026Abdelrahman Sadallah, Kareem Elozeiri, Mervat Abassy +5Arabic Natural Language ProcessingPoetry