arXiv:2610.25406cs.CLOct 2026

Manuscript Offprint

arXiv:2610.25406

Towards Figurative Language Understanding in Moroccan Darija: An Evaluation of Large Language Models

Jihad R'baiti, Youssef Hmamouche, Emmanuele Chersoni, Chu-Ren Huang, Amal El Fallah Seghrouchni

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Figurative language remains a major challenge for Machine Translation (MT) systems, as the intended meaning of such expressions often goes beyond literal translation. Although recent advances in Large Language Models (LLMs) improved the translation of Arabic dialects, benchmark resources for evaluating figurative language translation in Moroccan Darija remain scarce. To this end, we introduce the Moroccan Darija Figurative Language Corpus (MDFC), a benchmark dataset for MT and multiple-choice question (MCQ) selection covering idioms, metaphors, and proverbs. Using MDFC, we evaluate 19 open- and closed-weight language models and MT systems at both the expression and contextual levels under zero-shot and six-shot settings. We also conduct layer-wise similarity-based probing to determine how model representations distinguish figurative from literal meanings. Our findings reveal that closed-weight models achieve the strongest translation performance, while the benefits of contextual information vary across models and tasks. Differences between translation performance and MCQ accuracy highlight the distinction between generating an appropriate figurative translation and recognizing the intended meaning among candidate translations.

Keywords Large Language Models · Figurative Language · Machine Translation · Moroccan Dialect · Low-Resource Languages · Language Resources and Evaluation

1 Introduction

Human language plays a central role in communication, allowing individuals to convey ideas, express emotions, and share information across cultures. However, sentence interpretation is not limited to the literal sense of words; it is also shaped by cognitive and pragmatic factors, influenced by cultural background and shared knowledge. This is particularly evident in idioms, metaphors, and proverbs, which function as rhetorical devices whose intended meaning is often implicit rather than explicitly stated. Interpreting these expressions thereby requires linguistic knowledge, cultural awareness, and experience. When translating them, the literal translation preserves the direct lexical meaning of the source sentence through word-for-word translation [1, 2]. In contrast, the figurative translation conveys the intended meaning of the expression while accounting for its cultural and contextual background.

In the context of MT, LLMs are capable of generating fluent and coherent text [3, 4, 5], yet they do not fully understand this context-dependent and socio-pragmatic expressions, such as idioms and slang [6]. Instead, they rely on patterns and representations learned from large-scale training data, which allows them to approximate context-sensitive language use, while struggling to fully capture the meaning of culturally rich and figurative usages of language [7, 8].

Despite these limitations, the evaluation of LLMs in MT remains centered on standard benchmarks that prioritize high-resource languages and conventional text [9, 10]. Such benchmarks provide limited insight into how models handle linguistically complex and culturally grounded phenomena in underrepresented languages [11]. This issue is particularly evident for example for Moroccan Darija, a low-resource Arabic dialect characterized by high variability, lack of standardization, and strong cultural specificity [12].

The lack of dedicated evaluation resources for the figurative language makes it difficult to assess the behavior of the model and identify failure modes. For instance, the expression ‘متطوع من شعلة’ (literally: ‘cut from a tree’) refers to someone with no family or social ties, while ‘ظار ليه القرب’ (literally: ‘the bird flew away from him’) is used to describe someone who has lost their mind or become irrational. Such examples highlight the gap between surface form and intended meaning, reflecting the importance of more targeted evaluation approaches and more robust models capable of handling such figurative expressions.

Existing benchmarks do not make it possible to classify fluent translation from genuine preservation of figurative meaning, particularly for culturally specific Darija expressions. It therefore remains uncertain whether model improvements, greater scale, or access to contextual information translate into a stronger ability to recover intended meanings rather than reproduce literal lexical content. Addressing this question requires targeted data, comparisons across model families and sizes, and complementary evaluation methods that capture both general translation quality and figurative adequacy.

To systematically examine both model capability and the methodological factors that shape its evaluation, we address the following research questions: How accurately can LLMs translate idiomatic, metaphorical, and proverbial expressions from Moroccan Darija into English while preserving their intended meaning, and to what extent do they rely on literal translation? (RQ1) To what extent does providing contextual information affect models' ability to preserve the intended meaning of Moroccan Darija figurative expressions? (RQ2) What types of translation errors characterize the outputs of the evaluated models, and how do these error patterns differ across selected models? (RQ3) How does model parameter size influence translation performance? (RQ4)

The main contributions of this work are as follows:

  • The introduction of MDFC, the first benchmark specifically designed for Moroccan Darija figurative language translation, comprising expression- and context-based data in which source sentences are paired with literal and figuratively appropriate English translations.

  • A multidimensional evaluation framework that examines figurative translation generation and interpretation through complementary automatic and LLM-based metrics, multiple-choice evaluation under zero- and few-shot prompting settings, and a systematic analysis of recurrent translation errors across selected models.

  • An extensive evaluation of 19 open- and closed-weight LLMs and MT models, examining the roles of contextual information, prompting strategy, and model size in Moroccan Darija figurative translation.

  • A layer-wise probing analysis examining how figurative meaning is represented across model layers and whether these representations distinguish figuratively appropriate meanings from literal translations.

The remainder of this paper is organized as follows: Section 2 reviews prior research on figurative language processing, resources, and LLM-based translation evaluation. Section 3 describes the construction and characteristics of MDFC. Section 4 presents the evaluated models, prompting settings, and evaluation metrics. Section 5 presents and discusses the experimental results. Finally, Section 6 summarizes the study and outlines directions for future research.

References (50)