Are LLMs Good Text Diacritizers? An Arabic and Yorùbá Case Study

Hawau Olamide Toyin, Samar M. Magdy, Hanan Aldarmaki
6/13/2025
cs.CLcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

We investigate the effectiveness of large language models (LLMs) for text diacritization in two typologically distinct languages: Arabic and Yoruba. To enable a rigorous evaluation, we introduce a novel multilingual dataset MultiDiac, with diverse samples that capture a range of diacritic ambiguities. We evaluate 14 LLMs varying in size, accessibility, and language coverage, and benchmark them against 6 specialized diacritization models. Additionally, we fine-tune four small open-source models using LoRA for Yoruba. Our results show that many off-the-shelf LLMs outperform specialized diacritization models for both Arabic and Yoruba, but smaller models suffer from hallucinations. Fine-tuning on a small dataset can help improve diacritization performance and reduce hallucination rates.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{toyin2025llms,
  title  = {Are LLMs Good Text Diacritizers? An Arabic and Yorùbá Case Study},
  author = {Hawau Olamide Toyin and Samar M. Magdy and Hanan Aldarmaki},
  year   = {2025},
  eprint = {2506.11602},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.11602v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.11602.svg)](https://codeofpaper.com/paper/2506.11602)

Discussion