---
title: "Sinhala Transliteration — paper by Mel et al. (2025)"
description: "A study of Sinhala transliteration compares hand-written rules with a system trained to recover Sinhala script from informal Latin spellings."
canonical: "https://research.elamur.ai/free/en/papers/mel-2025-sinhala-transliteration-comparative-analysis-between/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/mel-2025-sinhala-transliteration-comparative-analysis-between/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / Sinhala Transliteration: A Comparative Analysis Between Rule-based and Seq2Seq Approaches

# Sinhala Transliteration: A Comparative Analysis Between Rule-based and Seq2Seq Approaches

Paper · 2025 · Yomal De Mel, Kasun Wickramasinghe, Nisansa de Silva et al.

**Authors:** Yomal De Mel, Kasun Wickramasinghe, [Nisansa de Silva](https://md.research.elamur.ai/free/en/authors/nisansa-de-silva/) and [Surangika Ranathunga](https://md.research.elamur.ai/free/en/authors/surangika-ranathunga/) · **Year:** 2025 · **Venue:** Proceedings of the First Workshop on Natural Language Processing for Indo-Aryan and Dravidian Languages · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the First Workshop on Natural Language Processing for Indo-Aryan and Dravidian Languages · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2025.indonlp-1.19/)
- [PDF](https://aclanthology.org/2025.indonlp-1.19.pdf)

## Summary

A person can write a Sinhala message using Latin letters and expect another Sinhala speaker to understand it. The practice is commonly called Singlish. It makes typing convenient, but it leaves a conversion system with a difficult job. People can leave vowels out, use different letters for the same sound, or switch between Sinhala and English in the middle of a message. De Mel and colleagues study reverse transliteration, the task of recovering Sinhala writing from this Latin-script input. Their comparison asks how well a fixed set of spelling rules handles the task and what changes when a system learns to convert whole sentences from examples.

The authors build a rule-based baseline that scans each word for familiar letter combinations and writes the corresponding Sinhala forms. It checks longer combinations first so that a sequence such as `aa` has a chance to produce its own output before the individual letters are considered. For their other approach, the authors adapt M2M100, a multilingual translation system that already supports Sinhala. They train it on paired Romanized and Sinhala sentences, including examples they alter to resemble informal typing. The sentence-based approach can use surrounding words to help choose a Sinhala spelling when the Latin letters alone leave it uncertain.

On both shared-task test sets, the adapted system makes fewer word and character errors and gets higher [BLEU scores](https://md.research.elamur.ai/free/en/concepts/bleu/). On Test Set 01, which contains general Romanized typing patterns, its word error rate is 0.1983, compared with 0.6689 for the rules. On Test Set 02, which targets ad hoc spellings, the corresponding rates are 0.2413 and 0.6809. The sentence-based system therefore retains its advantage on the informal set, although its own errors increase. In the paper’s qualitative example, it also recovers several words whose Latin spellings leave out vowels.

The speed measurements favor the rules. The authors report more than 200,000 output tokens per second for the rule-based system, while the adapted system runs at approximately 3 on a CPU with fp32 precision and approximately 65 on a GPU with fp16 precision. The comparison establishes an accuracy and speed tradeoff for the systems tested. The authors attribute much of the learned approach’s flexibility to its ability to use context and learn informal spelling patterns. Their experiments measure the combined effect of that approach, including its starting checkpoint and training data.

## Deep dive: Sinhala Transliteration: A Comparative Analysis Between Rule-based and Seq2Seq Approaches

A study of Sinhala transliteration compares hand-written rules with a system trained to recover Sinhala script from informal Latin spellings. · about 31 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a reader supplies to an informal spelling

Sinhala has its own writing system, and the paper places its speaker population at over 16 million people in Sri Lanka. In informal digital messages, people frequently represent Sinhala words with Latin letters. The authors relate this practice to the convenience of Romanized typing and to differences in familiarity with tools for entering the native script. They use Singlish for this form of written Sinhala. A sequence that looks like a string of English letters may therefore be a Sinhala word, and a message written entirely with those letters may still be Sinhala.

The conversion goes from the informal form back to its native script. The source sentence and the desired sentence express the same Sinhala message. This is a narrower job than translating a sentence between languages, though the machinery used for [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) can be adapted to it. The distinction determines what counts as a successful output. The system is expected to recover a suitable written form for what the author typed, including details a reader might have inferred without noticing.

One difficulty comes from the relationship between the scripts. The paper describes Sinhala writing as an abugida and Latin writing as alphabetic. In the mapping the authors build, vowel information can affect the form associated with a consonant, and a combination of Latin letters can correspond to a Sinhala letter or a form with a vowel sign. A typing convention can retain the necessary distinctions by assigning them different Latin sequences. Once users choose their own approximations, those distinctions can disappear. Reverse transliteration then has to recover information that the input only suggests.

The spelling `mama` illustrates the problem. The authors give Sinhala readings corresponding to a first-person pronoun, a form referring specifically to oneself, and a word for an uncle. The possible outputs differ in how their vowels are written. A person can type the same plain sequence for these different words. A conversion rule that sees only that sequence has the same evidence on every occurrence. A reader who sees the sentence may have more evidence because a pronoun and a family term can fit different surroundings.

Variation also works in the other direction. A writer can use different Romanized spellings for the same Sinhala word. The authors demonstrate this in the training data by changing vowel choices and deleting vowels while keeping the same Sinhala sentence as the expected output. In this setting, different source strings can deserve the same answer, while identical strings can sometimes deserve different answers. A rule for recognizing spelling variants addresses the former problem. Evidence from the rest of the sentence can help with the latter.

The paper also draws attention to mixing and switching between languages. Some Romanized messages contain words from English alongside Sinhala written in Latin letters. The shared script makes language identity another aspect the system may have to infer. A string’s letters alone can give an incomplete account of the role it plays in a message. The authors discuss this as part of the motivation for a system that can learn from examples of full sentences. Their reported tests chiefly describe differences in Romanized typing patterns, so the mixed-language issue remains broader than the benchmark comparison.

The task belongs to work on [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/) because the authors describe limited research and resources for this particular conversion. Preexisting Sinhala support in translation systems offers a starting point, while established datasets give the authors material for pairing native writing with Romanized writing. The remaining challenge is coverage of the informal input. A corpus can contain usable Sinhala text and still give sparse evidence about the many ways users shorten or respell it in Latin letters.

#### What earlier transliteration systems did

The paper’s account of early work begins with explicit language rules. In a simple version, people specify which strings in the source script correspond to units in the destination script. The related-work discussion also describes richer rule-based systems that use a lexicon and information about word structure or sentence structure. Such resources can encode restrictions a bare letter table misses, but someone has to specify and maintain them. The authors’ own baseline uses the table-driven approach, so it tests a practical form of handwritten conversion within that broader family.

Tennage and colleagues supplied a starting point for the mapping rules. De Mel and colleagues describe that earlier work as using character tables to put words from different scripts into a common phonetic representation for translation. They report that it helped handle loanwords and phrases in its translation setting. That earlier use gives a reason to reuse the correspondences. Recovering Sinhala from freely typed Latin text puts a different demand on them because the input need not follow the convention under which a mapping was defined.

The paper also describes a prior Singlish system by Liwera and Ranathunga that combined explicit transliteration rules with a statistical component learned from social media comments. The rules covered vowel and consonant correspondences. The learned component used [trigrams](https://md.research.elamur.ai/free/en/concepts/n-gram/), patterns consisting of three successive units, to help handle variable or ambiguous input. The authors report better conversion from that combination. This earlier work matters because it already recognized the value of evidence beyond a fixed map. The current paper compares a map with a system that learns how to generate the output sequence as a whole.

The authors trace the same idea through earlier neural transliteration research. They cite Deselaers and colleagues for treating transliteration as a kind of translation at the character level. Later studies in their account used recurrent architectures, which process successive parts of a sequence and carry information along it. The paper also mentions an application of a Transformer to Azerbaijani and a comparison by Moran and Lignos in which a Transformer encoder–decoder led the tested architectures on named-entity transliteration. Those studies motivate the architecture choice. Their success concerns other transliteration settings, so directly testing informal Sinhala remained necessary.

#### Why translation was a plausible starting point

A sequence-to-sequence system receives an ordered input and produces an ordered output. The paper follows the encoder–decoder design associated with the [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/). The encoder represents the input sequence, and the decoder produces the output while consulting that representation and the output generated so far. The related-work discussion credits [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/) for the architecture. Its relevance to reverse transliteration is that the system can consider relationships across a source sentence when choosing how to write a particular part of it.

The paper discusses this choice in the context of [multilingual natural language processing](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/). Sinhala already figures in several systems designed to transform text across languages or tasks. The authors mention [mT5](https://md.research.elamur.ai/free/en/papers/xue-2021-mt5-massively-multilingual-pre-trained/) and mBART, whose respective architectural predecessors are [T5](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/) and [BART](https://md.research.elamur.ai/free/en/papers/lewis-2020-bart-denoising-sequence-sequence-pre/). Their discussion also cites work on [SiTSE](https://md.research.elamur.ai/free/en/papers/ranathunga-2024-sitse-sinhala-text-simplification-dataset/), a Sinhala text simplification dataset. These examples situate Sinhala among the languages for which an existing text generator can be adapted to a new task.

The closest candidates for the study were multilingual translators with Sinhala support. The authors discuss M2M100 and NLLB as sharing an architecture while having different training data. They identify [CCMatrix](https://md.research.elamur.ai/free/en/papers/schwenk-2019-ccmatrix-mining-billions-high-quality/) and CCAligned among the sources used for M2M100. They describe MarianNMT as using a different encoder–decoder architecture and point to the work introducing [OPUS-100](https://md.research.elamur.ai/free/en/papers/zhang-2020-improving-massively-multilingual-neural-machine/) for its training data. Their related-work account mentions a separate study that favored NLLB for translation involving Sinhala. The decision here also took account of the terms attached to the pretrained weights.

These lines of prior work give the comparison its shape. Fixed correspondences provide a direct way to build a baseline. Earlier hybrid work gives a reason to take contextual evidence seriously. Multilingual translation supplies a system that can already produce Sinhala and can be taught a different input–output relationship. The paper brings those ingredients to the question of how faithfully a converter can recover native Sinhala from general and ad hoc Romanized typing.

### The method, step by step

#### Reading a word with a table

The baseline begins with a table whose keys are Latin strings and whose values are Sinhala forms. The table extends the earlier mapping by Tennage and colleagues with entries for combinations of two and three characters. The paper’s sample includes mappings for vowels, consonants, signs, and combinations such as a consonant with a vowel. Some distinctions depend on case in the displayed entries. For example, `a` maps to `අ` and `A` maps to `ඇ`. Where a convention uses these spellings consistently, the table can preserve a difference that would disappear if the input were treated as uniformly lower-case.

The converter starts at the left edge of a word. At its current position, it checks table entries against the longest supported span first: three characters, then two, then one. It accepts the first match. The lookup then resumes immediately after the characters consumed by that match. The order lets a multiletter convention act as a unit. A scan that chose a one-character match whenever it was available could split a spelling such as `aa` before the vowel represented by the full pair had a chance to be recognized.

The sample mappings also give a concrete example of how the process deals with overlaps. The table contains `ka`, which maps to `ක`, and `kaa`, which maps to `කා`. At the beginning of `kaa`, inspecting the three-character span lets the converter select the latter entry directly. The same procedure works when successive stretches of a longer word have different lengths. The table defines the available chunks, and the scan decides how much input to consume next by inspecting the current position.

The algorithm initializes its position as follows.

```
i ← 0
```

Here `i` is the index of the next character to examine. The arrow `←` assigns a value, and `0` denotes the position at the beginning of the word. The output starts as an empty string. With an empty input word there is nothing to scan, so the initialized output is already the result.

For a candidate length, the algorithm takes the following slice.

```
substring ← word[i:i + length]
```

`word` is the Latin-script input word, `i` is the current index, and `length` is the size currently being tried. The square brackets enclose a slice, and the colon separates its starting position from its end boundary. The `+` adds the length to the current index to find that boundary. `substring` is the candidate string, and `←` assigns the slice to it. This operation tests the characters starting at the current index without yet committing to a conversion.

When that candidate is in the table, the output changes as follows.

```
result ← result + transliteration_table[substring]
```

`result` is the output assembled so far. `transliteration_table` is the mapping from Latin strings to Sinhala forms, and `substring` is the matching key. The square brackets retrieve the value for that key. Here `+` joins strings, with the retrieved form appended to the existing output. The arrow `←` stores the joined string back in `result`. The system then advances over the source stretch it used.

```
i ← i + length
```

`i` again denotes the current position. `length` is now the size of the accepted candidate. The `+` adds that size to the old position, and `←` replaces the old position with the result. The lookup at the next position therefore begins with the part of the word still awaiting conversion. Shorter alternatives for the accepted stretch are skipped.

For a position where every candidate fails, the pseudocode copies the current input character to the result and moves forward by one character. This fallback makes the scan able to proceed even when the table has no useful entry for part of the input. The paper’s prose describes checking that the input word uses Latin characters. The pseudocode spells out the fallback during lookup, which by itself gives no account of every preprocessing decision for punctuation or mixed-script input.

The longest-match procedure is greedy. It decides which characters to consume at the current position and commits to that decision before looking up the next stretch. It never compares full-word candidates obtained by taking a shorter match first. A longer entry is useful when it represents an intended convention, but its presence does not guarantee that it is the right reading in a particular word. The rule is a way to respect the structure of the table. The linguistic interpretation still depends on how well the table’s assumptions fit the writer’s spelling.

The baseline produces its result word by word. An occurrence of a given string is therefore treated the same way wherever that string appears. That is an advantage when the correspondence is dependable. It makes the behavior easy to trace to particular entries and gives a direct explanation for the amount of work the scanner does. The same property explains its difficulty with the `mama` example. Surrounding words have no role in choosing between readings, and adding an entry for the input can still give only one result per lookup key under the reported procedure.

#### Adapting a translator to a change of script

For the sentence-based approach, the authors frame reverse transliteration as a paired text-generation task. Each input is Sinhala written with Latin letters, and each expected output is the corresponding sentence in the Sinhala script. At training time the paired examples show the system which output belongs to each input. At use time the system receives the Romanized sentence and generates the Sinhala sequence. This framing extends the character-level analogy from earlier transliteration work to a system that can consult the full input sentence.

The authors choose the 418M version of M2M100. It has already been trained for multilingual translation, and Sinhala is among the languages it supports. Starting there gives the authors a system that has already learned to process input sequences and generate Sinhala text. Their [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) procedure adapts that existing system using the pairs for the new task. The added training teaches it that a Latin-script rendering of a Sinhala sentence should lead to that sentence in its native script.

The choice followed a qualitative inspection of English-to-Sinhala translations. The paper compares outputs from Marian-MT, M2M100, and NLLB on sample English inputs and marks where it considers the translations correct or variously incorrect. The authors judge Marian’s outputs weaker for the pair and regard the quality of M2M100 and NLLB as close enough to consider other factors. They choose M2M100 because they find its weights subject to fewer restrictions than NLLB’s. This inspection concerns selecting the starting system. The later benchmark evaluates the resulting Sinhala transliterator on Romanized Sinhala.

M2M100 expects a source-language code and a target-language code. For the source, the authors reuse `en`, the existing code for English. For the target, they use `si`, the code for Sinhala. The source column still contains Sinhala words written in the Latin script. The English code is how the authors present those inputs to the existing translation interface. The output remains Sinhala under the target code. A paired example thus has the same form the translation system can accept, even though the task preserves the language and changes its written representation.

The authors also reuse M2M100’s tokenizer. [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) breaks up the text into the units the system processes. For the learned approach, the tokenizer determines those units for the training text and the Romanized sentences it later encounters. For the baseline, the closest equivalent is the explicit search for table keys of different lengths. The paper does not give token-by-token analyses of the learned system. Its method leaves the existing tokenization in place while changing the relation the system is trained to learn.

Inside the Transformer, self-attention provides a way to relate positions within a sequence. On the input side, a representation of part of the Romanized sentence can draw on other parts of that sentence. The decoder uses cross-attention to consult the encoded input as it generates the output. The paper invokes these mechanisms to explain how sentence context can enter a decision. If the spelling at one location admits several Sinhala readings, other locations can supply evidence about which reading fits. An output already under construction can also affect what the decoder produces next.

The decoder’s job is sequence generation, so the procedure need not make one locally final choice for each source character. This matters for inputs where a vowel is absent in the Latin text but belongs in the Sinhala form, or where the likely reading depends on an adjacent word. A useful way to distinguish the operations is to follow what they consult when they encounter the same difficult string. The table method consults the characters at the current word position. The adapted system has access to the encoded sentence and the output it has built so far.

Adapting M2M100 for Sinhala reverse transliteration The steps in order.

#### Preparing the paired sentences

The data come from Dakshina and Swa-Bhasha. The authors draw on them to build pairs for the Sinhala task. Each pair describes the same text in Romanized and native writing, so the target can supervise the choice of Sinhala spellings when the source alone is imperfect. The paper describes converting datasets to CSV to put the Romanized sentences in one column and their expected Sinhala forms in another. This organization preserves which expected sentence goes with which input and lets the same relationship serve training, validation, or evaluation.

The authors augment the Romanized material by applying informal typing patterns. Data augmentation here means producing additional source spellings while retaining the Sinhala sentence they should lead to. The paper mentions vowel deletion and shows other changes in the Latin spellings as well. In its example the starting form is `Oya rata kawada ?`. A version with different vowel choices is `Oya reta kewada ?`, and a version with omissions is `Oy rat kawd ?`. Their expected output is the same Sinhala question.

The choices in that example help explain what the training task asks of the system. In `Oy`, for example, the source no longer supplies the final letter seen in `Oya`. The remaining words may also have lost vowels. When the destination stays the same across the variants, the learning procedure receives evidence that the changes can reflect typing habits rather than a change of sentence. The evidence comes from seeing the intended output paired with each spelling. A conversion table that just looks up the letters on the screen has no comparable way to fill every such gap.

The augmentation also illustrates the difference between producing examples and judging their value. The authors choose edits that resemble what people do in practice and train on the resulting pairs. The main comparison then measures the finished system, built with those pairs, against the rules. The method description gives the shape of the changes but does not enumerate an exhaustive transformation inventory or say how often each change was applied. The example supports a detailed account of the intended variation and a more limited account of its frequency in training.

The resulting collection has 10k paired entries. The authors allocate 9k to training and 1k to validation. Training examples are used to adapt the system. The validation portion is a separate part of the authors’ collection used during development. The shared-task sets used for final evaluation are separate from that stated training and validation split. This distinction matters because the held-out results concern the systems’ behavior on the task organizers’ examples.

#### Running the training

Training uses an NVIDIA Tesla T4 16GB GPU. The reported learning rate is `2e-5`, and the system trains for `3` epochs, with an epoch denoting a pass through the training set. The authors specify a training batch size of `8` and gradient accumulation of `1`. Gradient accumulation concerns how many batches contribute before an update is applied. With the reported setting, the effective training batch size in the paper is `8`.

The run uses `fp16` precision and weight decay of `0.01`. Precision concerns the numerical representation used in computation. Weight decay is a training setting that limits how the system’s weights grow during adaptation. Adam is the optimizer, the procedure responsible for updating those weights, and the learning-rate scheduler is linear. The scheduler controls how the size of the updates changes over the run. The hyper-parameter table lists `9000` entries for training and `1000` for evaluation during development, the same split expressed as `9k` and `1k` in the data description.

These settings describe how the authors adapted the checkpoint and help identify which implementation the final benchmark numbers refer to. The evidence for choosing M2M100 comes from the paper’s narrow translation inspection and the terms on the weights. The evidence for using paired examples comes from the way the authors formulate the task and from the finished system’s evaluation. The paper names the associated implementation Sinhala-Transliterator.

### Experiments and results

#### What the shared-task sets test

To evaluate both approaches, the authors use Sinhala data released for the shared task on reverse transliteration that the IndoNLP workshop organized in conjunction with COLING 2025. Test Set 01 has 10,000 parallel entries and represents general Romanized typing patterns. Test Set 02 has 5000 parallel entries and emphasizes ad hoc spellings of the kind the organizers sought to capture from practical use. Each source sentence comes with an expected Sinhala version against which the converter’s output is scored.

The two sets offer complementary checks. The general set tests the conversion across ordinary typing patterns. The ad hoc set puts more emphasis on variants likely to strain a fixed mapping, such as the kind of abbreviations and vowel changes shown in the paper. Since the sets contain different entries, their results describe how the systems fare on distinct collections. A difference between scores can reflect the typing patterns and other differences between the sentences. The paper does not pair each general input with a systematically altered version of itself for this comparison.

The baseline is the authors’ own extended lookup-table converter. It receives the same Romanized input as the adapted M2M100 system and its output is compared with the same reference. Earlier hybrid systems and other translation backbones provide context for the method. The shared-task results reported in the paper give the comparison between the new rule implementation and the adapted M2M100 system.

The authors report word error rate, character error rate, and BLEU using implementations from the Python `evaluate` library. Word error rate, or WER, measures the edits needed to bring the output into agreement with the reference at the word level. A word that needs replacement can contribute a word error even when the output spelling was only slightly off. Character error rate, or CER, applies the edit idea at the character level. It can therefore distinguish a near miss from a form that differs in many places. Lower values favor the system with fewer errors on either measure.

BLEU examines overlap between the generated and reference text through matching sequences. Its direction is the reverse of the error rates: higher values indicate more overlap. Together the three measures describe fidelity from different angles. WER shows how much correction is needed if words are the unit of interest. CER is sensitive to the extent of spelling differences within those words. BLEU reflects the amount of matching material found in the output sequence. The paper reports its test-set values as decimals, so the comparisons below use that scale.

#### Word and character errors

For WER on Test Set 01, the rule-based approach scores 0.6689 and the adapted M2M100 approach scores 0.1983. On Test Set 02, the rule system scores 0.6809 and the adapted system scores 0.2413. The learned system therefore leads on both sets, and its higher WER on Test Set 02 shows that the informal set still poses difficulties. The within-set comparison establishes the advantage under each set’s own distribution of inputs and references.

Word error rate by Sinhala transliteration system on Test Sets 01 and 02 Fine-tuned M2M100 makes fewer word-level errors on both sets.

**The numbers**

| System or setting | WER |
| --- | --- |
| Rule-based, Test Set 01 | 0.6689 |
| Fine-tuned M2M100, Test Set 01 (this paper) | 0.1983 |
| Rule-based, Test Set 02 | 0.6809 |
| Fine-tuned M2M100, Test Set 02 | 0.2413 |

For CER on Test Set 01, the values are 0.2119 for the rules and 0.0579 for adapted M2M100. On Test Set 02, they are 0.2202 and 0.0789, respectively. The ranking agrees with WER. At the finer level of individual characters, the learned system’s output also takes fewer edits to match the expected Sinhala. This agreement makes the comparison less dependent on a choice between whole-word and character scoring.

Character error rate by Sinhala transliteration system on Test Sets 01 and 02 Fine-tuned M2M100 reduces character errors relative to the rules on each set.

**The numbers**

| System or setting | CER |
| --- | --- |
| Rule-based, Test Set 01 | 0.2119 |
| Fine-tuned M2M100, Test Set 01 (this paper) | 0.0579 |
| Rule-based, Test Set 02 | 0.2202 |
| Fine-tuned M2M100, Test Set 02 | 0.0789 |

Character overlap gives some credit to forms that are close to the reference, while the corresponding word still requires a correction at the word level. This relationship is helpful for reading the outputs of a letter-mapping system. It may reproduce much of the original sound pattern and still produce a spelling the reference disagrees with. Aggregate CER and WER make those outcomes visible under different scoring units, although they do not identify which distinctions account for most of the errors. The paper’s example makes that more concrete for a few words.

#### Overlap with the expected Sinhala

On Test Set 01, the rule-based BLEU score is 0.0177 and the adapted system scores 0.5268. On Test Set 02, the values are 0.0163 and 0.4384. The preference for the adapted system now appears in a measure based on matching text sequences. The lower BLEU on the ad hoc set accompanies the increases in its word and character errors. All three reported measures therefore characterize Test Set 02 as a harder collection for this implementation.

BLEU by Sinhala transliteration system on Test Sets 01 and 02 Fine-tuned M2M100 has more overlap with the reference on both sets.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Rule-based, Test Set 01 | 0.0177 |
| Fine-tuned M2M100, Test Set 01 (this paper) | 0.5268 |
| Rule-based, Test Set 02 | 0.0163 |
| Fine-tuned M2M100, Test Set 02 | 0.4384 |

The BLEU figures concern the ability to reproduce sequences found in the expected Sinhala text. In a conversion task, even a small spelling difference can disrupt a match containing the affected word. A system can therefore produce some recognizable words while receiving little credit for longer matching sequences. The overlap result complements the character scores by showing that the advantage extends past the presence of individual correct letters. The paper does not give a breakdown of the matching sequences that contribute to the score.

#### What the output example reveals

The qualitative comparison gives both systems a long Romanized input with spellings such as `kmk`, `nrkyi`, and `dnnwa`. Several words contain fewer vowel letters than a fuller Romanized spelling would have. The paper prints the Sinhala output from each approach so the reader can see what happens to those compressed stretches. This example addresses the kind of difficulty that a test-set average names only indirectly.

For `kmk`, the table produces `ක්මක්`, while the sentence-based system produces `කමක්`. The visible difference concerns how the consonants are written with vowels. The source offers the same short consonant sequence to both systems. The table expands it according to its available correspondences, and the adapted system can generate a fuller Sinhala word. In the same passage, `nrkyi` yields `න්රක්යි` under the rules and `නරකයි` under the learned approach. These words give the authors specific grounds for describing the learned system as more flexible with compressed typing.

Other differences appear where the source already contains vowels. The two outputs for `oya` are `ඔය` under the rules and `ඔයා` with the adapted system. That example shows why informal transliteration involves more than reinserting missing letter symbols in visibly shortened strings. The vowel choices in the Latin spelling also have to be interpreted as hints about the intended Sinhala form. Output differences across the passage reflect both kinds of uncertainty.

The paper presents this passage as a robustness illustration. It places the same input before the two systems, so differences in their output can be inspected within a sentence. There is no separate reference column in that comparison. The example’s contribution is to show recognizable differences in the recovered spellings and provide a plausible account of the aggregate advantage. It does not turn the passage into a set of independently scored tests for vowel restoration, word choice, or contextual inference.

#### How fast the systems generate output

The speed comparison reports throughput in output tokens per second, abbreviated TPS. The rule-based system is listed at `>200,000` TPS. The sentence-based system is listed at `∼3` TPS on a CPU with `fp32` precision, `∼35` TPS on a GPU with `fp32`, and `∼65` TPS on a GPU with `fp16`. The inequality and approximation signs are part of the reported results. They express a bound for the rules and approximate measurements for the learned approach.

These figures show that the learned system’s throughput depends substantially on its execution setting. The CPU measurement gives the authors grounds to describe that configuration as difficult to use for real-time conversion. They consider GPU performance suitable for real-time use. The two GPU entries also show faster generation with `fp16` in the tested setup. The accuracy table is not split by inference hardware or precision, so the scores cannot establish how much output fidelity might change when precision changes.

The algorithms suggest why the speed difference is substantial. The rule-based system needs a table lookup and an append operation for each accepted span, with a bounded search over candidate lengths. The sentence-based system first represents the input and then generates the output using the encoder and decoder. That explanation concerns the operations each method performs. The paper reports measured throughput for the complete approaches, without assigning portions of the runtime to tokenization, encoding, decoding, or other stages.

### What the ablations show

The paper reports no component-removal ablation. Its analyses compare the completed systems on general and ad hoc inputs, inspect a shared Romanized passage, assess candidate translators qualitatively, and measure throughput across execution settings.

#### The gain persists when typing is less regular

Evaluating the converters on the same inputs gives the clearest comparison in the paper. The rule-based and sentence-based approaches face identical Romanized sentences within each test set, and their outputs are evaluated against the same expected Sinhala. The ranking holds across the sets and across metrics. The learned approach’s advantage therefore covers both the general and the specially ad hoc material in this benchmark.

The second set is especially relevant to the authors’ motivation because the training augmentation deliberately introduces informal typing variants. The observed scores show that the full trained system can handle a collection designed around such variation better than the rules used here. They leave open whether a system trained on the original pairs alone would retain the same advantage. A comparison with and without those added variants would be needed to measure the augmentation’s individual contribution.

The same reasoning applies to sentence context. The example includes outputs consistent with recovering a word from its surroundings, and the architecture provides access to those surroundings. An adapted system trained on many examples could also learn that particular compressed strings often correspond to particular Sinhala words. Both explanations fit the qualitative comparison. The paper does not test a word-only version of the learned approach or vary the neighboring words around a fixed ambiguous spelling. Its experiment establishes a difference in output quality, with the exact role of context left unresolved.

The new mapping entries are another part of the comparison that stays fixed. Their role is concrete in the algorithm because they allow additional multiletter spans to match. The paper does not report results for the same converter using just the inherited table. The rule scores therefore measure the extended table as implemented. They give no separate measure of how much the new entries improved coverage or how frequently they led the greedy scan to choose a different segmentation.

#### Translation quality informs the starting choice

The English-to-Sinhala examples illustrate a preliminary comparison among possible checkpoints. An English input about what matters in the way someone played, for example, is intended to preserve the relationship between the manner of play and the time spent. Looking at the Sinhala variants lets the authors judge which systems preserve that relationship and which render it poorly. Their table covers other everyday sentences too and uses qualitative judgments for correctness.

This check gives the authors evidence about whether a candidate can already generate suitable Sinhala for a task it was designed to do. The task evaluated there is different from reading informal Romanized Sinhala. The published transliteration comparison contains the adapted M2M100 system only, so it cannot rank hypothetical transliterators adapted from Marian-MT or NLLB. The selection is best understood as a practical choice supported by a preliminary quality check and the terms on the weights.

#### Precision changes the measured generation speed

The throughput entries allow a narrower comparison than the quality tests do. The reported `fp32` settings let the reader see how the learned system fares on a CPU and a GPU at the same named precision. The two GPU entries then show how its speed changes with numerical precision in the tested conditions. These are comparisons of execution settings rather than changes to the learned transliteration method.

The authors suggest that still lower precision might provide further performance gains, possibly with a small cost in accuracy. Their throughput table includes `fp32` and `fp16`, and it supplies no quality scores for individual precision settings. The measured result is faster GPU generation with the lower of the tested precisions. The accuracy tradeoff and the performance of the other precisions they mention remain possibilities.

### Limitations

#### Limits identified by the authors

The authors identify ambiguous Latin sequences as a major weakness of the rule-based converter. Mapping a table key to a fixed Sinhala form works when the writer’s spelling distinguishes the intended sound or word. When the same key stands for multiple possibilities, the scan has no evidence from neighboring words. The pronoun and family-term readings of `mama` make the problem easy to see. Enlarging the table can add coverage for strings it previously missed. Resolving different readings of an identical input requires some basis for choosing among them.

They also point to [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/), the structure and variation of word forms. Inflections and compounds can put familiar pieces together in ways that require sensitivity to the rest of a word or to its grammar. The current rule system handles the pieces through local matches. If the intended pronunciation or spelling depends on a neighboring syllable or on the grammatical role of the word, the mapping can select an ill-fitting form even when its individual entries are reasonable.

The learned system has a different dependence on coverage. The authors emphasize that output quality depends on the quality of the training material. They used 9k parallel examples to adapt the system and suggest that a larger collection covering more practical cases could improve the results. Their augmentation broadens the spellings associated with some targets, while the collection still represents a selection of the ways people type. They also identify further experiments with other generators as future work.

Efficiency is the other stated limit of the learned system. The authors report that CPU generation is slow enough to make real-time use difficult in their test and that GPU generation improves the situation. The finding is relevant to the practical choice between the two implementations because the stronger quality scores come with a substantially heavier computation. Suitability for any particular application still depends on the hardware and the amount of text that application needs to process.

#### Limits of what the experiment establishes

The rule baseline represents one design within a larger class. The related-work section itself describes rule-based approaches that can use linguistic structure and a hybrid Singlish converter that adds trigram evidence. The implementation measured here uses a greedy character lookup. The results establish that the adapted system is more faithful to the shared-task references than that converter. Extending the ranking to all systems that use rules would require comparisons with designs that use the contextual information this baseline leaves out.

The learned approach also changes several things together. It starts from a multilingual checkpoint, uses its tokenizer and encoder–decoder architecture, and trains on an augmented corpus with full sentences. The complete package can be evaluated directly using the paper’s tables. Those tables provide no independent estimate of what would happen if the system started without pretraining, kept the original rather than augmented pairs, or received isolated words. The distinction matters whenever an explanation appeals to one particular ingredient as the source of the observed gain.

The two test sets vary in input style and in their underlying entries. The paper reports 10,000 examples for the general set and 5000 for the ad hoc set. A score change from one to the other describes a change across those collections. A controlled test of a particular spelling operation would need to apply that operation to otherwise comparable inputs. Without such a test, the reported difference covers whatever makes one collection easier or harder, including the range of sentences and the ways they were Romanized.

The data preparation description leaves some details about coverage unresolved. It identifies the source collections, shows example alterations, and gives sizes for training and validation. It does not specify the contribution from each collection, the frequency of each alteration, or whether variants of a given underlying sentence were kept together when forming the split. Those details would help determine how distinct the validation examples are from the training examples and which forms of variation the learner encounters most often. The published comparison still uses the externally supplied test sets for its final scores.

The paper raises mixed-language input as a reason to prefer a method that can learn from examples. A corpus can in principle show which parts of a mixed message should be converted and how the rest should be treated. The reported benchmark results do not give separate scores for messages that mix or switch languages. As a consequence, the measured advantage on ad hoc typing leaves open how reliably the system handles those cases. Informal Sinhala abbreviations and English insertions can occur in the same message, but they pose different questions for a converter.

Reference agreement also has limits as a measure of acceptability. In the examples where the Latin sequence is ambiguous, the reference records the intended Sinhala reading for that pair. The benchmark penalizes disagreement with that recorded form. The paper does not assess how often another reading might be defensible from the input or evaluate the outputs with readers who could judge such cases. The scores are therefore best read as evidence of fidelity to the expected sentences. They offer a less direct account of how many outputs a reader would consider acceptable under uncertain context.

The test scores are reported as averages. The paper supplies no uncertainty intervals or results from repeated training runs, and it gives no error counts by type. The first omission leaves the variability of the reported values unspecified. The second leaves questions about particular difficulties unanswered. The example shows what happens with a few vowel omissions and spelling choices, while the aggregate metrics cannot establish whether those effects dominate across the test sets. Error categories such as shortened words, ambiguous vowel choices, and compound forms would have to be measured directly to make that claim.

Finally, the efficiency table measures throughput, which concerns how much output is generated per unit of time. A person entering a short message would also experience the time until that individual message is converted. The paper does not give those latency measurements, a detailed speed protocol, or a breakdown of how the output tokens counted for the rules correspond to the tokens counted for the learned system. The table supports the large reported speed advantage of the rules in the tested conditions. It gives a more limited basis for estimating response time or comparing efficiencies under other hardware and workload conditions.

### What came after

[From Romanized to Devanagari: Enhancing Nepali Sentiment Analysis with NepaliXlit](https://md.research.elamur.ai/free/en/papers/patel-2026-romanized-devanagari-enhancing-nepali-sentiment/) cites the Sinhala study and places reverse transliteration in a Nepali sentiment-analysis setting. As its title indicates, NepaliXlit converts Romanized Nepali into Devanagari for work on [sentiment analysis](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/), the task of identifying sentiment expressed in text. The change of setting adds a downstream question. Where De Mel and colleagues compare the recovered Sinhala with a reference sentence, the Nepali work frames native-script recovery in terms of what a subsequent analysis can do with the converted input.

The connection is clearest at the level of task design. Both studies address text written with Latin letters when another script is the desired representation. In the Sinhala study, success is measured through word errors, character errors, and overlap with expected writing. In the Nepali work, the title identifies sentiment analysis as the reason for making the conversion. The citation establishes that the later study draws the Sinhala comparison into its discussion. The specific architecture, training procedure, and measured effect of the conversion on Nepali sentiment analysis remain unspecified.

## Cite

Cite as Yomal De Mel, Kasun Wickramasinghe, Nisansa de Silva and Surangika Ranathunga. 2025. Sinhala Transliteration: A Comparative Analysis Between Rule-based and Seq2Seq Approaches. Proceedings of the First Workshop on Natural Language Processing for Indo-Aryan and Dravidian Languages.

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

```bibtex
@inproceedings{mel2025sinhala,
  title = {{Sinhala Transliteration: A Comparative Analysis Between Rule-based and Seq2Seq Approaches}},
  author = {Yomal {De Mel}, Kasun Wickramasinghe, Nisansa {de Silva} and Surangika Ranathunga},
  booktitle = {Proceedings of the First Workshop on Natural Language Processing for Indo-Aryan and Dravidian Languages},
  year = {2025},
  url = {https://aclanthology.org/2025.indonlp-1.19/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
