arXiv:2610.17597cs.CLOct 2026

Manuscript Offprint

arXiv:2610.17597

TDR: Tagalog Diacritic Restoration Dataset

Ivan Yuri De Leon, Lanz Railey Fermin, Zachary Aldridge Africa, Richell Isaiah Flores

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Homographs are words that share identical spelling but differ in meaning and pronunciation. In Tagalog, these distinctions are disambiguated in writing through tuldik (diacritical marks), which are rarely preserved in contemporary Tagalog text. This scarcity of diacritics limits diacritic restoration, which is useful for downstream tasks such as prosody selection for text-to-speech synthesis. To address this gap, this study introduces TDR, an annotated corpus of 40 frequent Tagalog homographs constructed from news text. It also introduces a collocation-driven retrieval method to expand the dataset and mitigate severe class imbalance among minor variants. Finally, we show that TDR supplies a capability absent from pretrained models, and that this capability can be learned by small, inexpensive models as well as by fine-tuned LLMs. TDR is publicly available on Hugging Face. 1^{1}

Index Terms: word sense disambiguation, diacritics, Filipino, dataset

1. Introduction

Homographs are words that share the same written form but differ in meaning and, in some cases, pronunciation [1]. Their forms are the same when written without distinguishing marks, so the intended reading must be inferred from context [2]. Hence, homographs are a core challenge in word sense disambiguation (WSD) [3].

In Tagalog, tuldik (diacritics) resolve this ambiguity in writing by marking syllable stress and the presence of a final glottal stop [4]. These cues often correspond to differences in meaning: for example, the undiacritized word puno may refer to punò (tree) or punô (full), depending on context. Diacritics, thus, link a word's written form to its intended pronunciation and meaning [5]. However, contemporary Tagalog writing rarely preserves them, especially in digital communication [6]. Distinct words then collapse into identical spellings, increasing ambiguity for human readers and computational models [7, 8].

The omission of tuldik has implications for downstream language technologies, such as machine translation and text-to-speech (TTS) systems [9, 10]. In TTS, an undiacritized homograph may receive a plausible but unintended reading, potentially resulting in incorrect stress or glottalization. This, consequently, leads to unnatural or unintelligible synthesized speech [11]. Work on Filipino grapheme-to-phoneme (G2P) conversion likewise highlights the role of sentence-level context in determining stress [12], suggesting that automatic diacritic restoration could serve as a useful preprocessing step for pronunciation-oriented applications.

Despite this potential, automatic diacritic restoration in Tagalog remains largely unexplored. Tagalog is a low-resource language with comparatively few large-scale annotated corpora, benchmarks, and linguistic resources [13][13], and existing Tagalog corpora generally omit diacritics [14,15][14, 15], limiting their use for tasks that require fine-grained phonological distinctions. The only known dedicated effort is a small, manually annotated homograph corpus evaluated with classical classifiers [16][16]. This contrasts with languages like Arabic, which has several large-scale diacritized corpora and a long history of diacritization research [17][17]. Without comparable resources, progress on the development of automatic diacritic restorers for Tagalog remain hindered.

To address these limitations, we introduce the Tagalog Diacritic Restoration (TDR) dataset, a manually-annotated corpus of contemporary Tagalog news text covering 40 frequent homographs, with label reliability verified through independent reannotation. We also propose a collocation-driven framework to expand frequency of underrepresented homograph variants. Finally, we show that training on TDR provides diacritic restoration ability that pretrained models lack, for large language models (LLMs) as well as smaller encoder and classical models.

References (48)