← Latest papers
💻 computer science

Swa-bhasha Resource Hub: Romanized Sinhala to Sinhala Transliteration Systems and Data Resources

This paper introduces the Swa-bhasha Resource Hub, a publicly accessible platform offering a comprehensive collection of data and algorithms for Romanized Sinhala to Sinhala transliteration developed between 2020 and 2025, alongside a comparative analysis of existing tools to advance Sinhala Natural Language Processing.

Original authors: Deshan Sumanathilaka, Sameera Perera, Sachithya Dharmasiri, Maneesha Athukorala, Anuja Dilrukshi Herath, Rukshan Dias, Pasindu Gamage, Ruvan Weerasinghe, Y. H. P. P. Priyadarshana

Published 2026-04-28
📖 6 min read🧠 Deep dive

Original authors: Deshan Sumanathilaka, Sameera Perera, Sachithya Dharmasiri, Maneesha Athukorala, Anuja Dilrukshi Herath, Rukshan Dias, Pasindu Gamage, Ruvan Weerasinghe, Y. H. P. P. Priyadarshana

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine the Sinhala language as a beautiful, intricate garden. For decades, people in Sri Lanka have been trying to enter this garden using a different set of keys: the English keyboard. Because they didn't have a Sinhala keyboard handy, they started typing Sinhala sounds using English letters. They called this "Singlish" (Romanized Sinhala).

Think of Singlish as a secret code or a dialect of typos. It's fast and convenient, but it's messy. One word typed as "Adaraya" could mean "Love" or "Aid," depending on the context. It's like if you typed "bat" and it could mean the animal, the sports equipment, or a verb, and the computer has no idea which one you meant without reading the whole sentence.

This paper is a report card and a toolbox from a team of researchers (the Swa-bhasha team) who spent years building a bridge to help computers understand this messy code and turn it back into proper, beautiful Sinhala.

Here is what they built, explained simply:

1. The Problem: The "Lost in Translation" Game

The team noticed that while computers are great at translating English to French, they struggle with "Singlish" to Sinhala.

  • The Mess: People type differently. Some skip vowels (writing "klna" instead of "kalana"), some use English spelling rules, and some mix English and Sinhala words in the same sentence.
  • The Ambiguity: The biggest headache is that one typed word can have multiple meanings. The computer needs to be a detective to figure out which meaning fits the story.

2. The Toolbox: How They Fixed It

The team didn't just build one tool; they built a whole workshop with different machines, getting smarter with each generation.

  • The Rule-Book Robot (Swa Bhasha 1.0):

    • How it worked: Imagine a robot that follows a strict instruction manual. If it sees "k," it knows it needs a vowel next. It uses a "fuzzy" search (like a spell-checker that guesses) to find the closest match in a dictionary.
    • The Result: It was okay, but it struggled when people broke the rules (like skipping vowels).
  • The Hybrid Detective (Swa Bhasha 2.0 & The N-gram Model):

    • How it worked: They combined the Rule-Book Robot with a "Statistical Detective." This detective looked at millions of sentences to learn patterns. It used a "Trie" (a smart tree structure) to suggest words, like a phone's autocomplete but for Sinhala.
    • The Result: Much better at guessing the right word, but still got confused by very tricky sentences.
  • The Super-Reader (BERT & Transformers):

    • How it worked: This is the team's "Super-Reader." Instead of just looking at individual words, it reads the whole sentence at once, understanding the context like a human does. They used a powerful AI model called BERT (which is like a brain that has read the entire internet of Sinhala text).
    • The Trick: When the AI saw a confusing word, it put a "mask" over it and asked, "Based on the words before and after this, what word fits best here?"
    • The Result: This was the champion. It solved the ambiguity problems better than any previous method, achieving near-perfect accuracy in tests.
  • The Code-Mixing Specialist:

    • How it worked: People often mix English and Sinhala in one sentence (e.g., "I went to the kade [shop]"). The team built a special model that acts like a translator who speaks both languages fluently, handling the mix without getting confused.

3. The Library: The Data They Collected

You can't teach a child to read without books, and you can't teach an AI without data. The team realized there were no good "textbooks" for Singlish, so they wrote their own.

  • The "Swa-Bhasha" Library: They collected over 7 million words and thousands of sentences from real life (like YouTube comments and social media). This is like gathering every messy note ever written by a Sri Lankan to teach the computer how real people actually type.
  • The "Ambiguity" Test: They created a special quiz where one word has two meanings. They tested their AI on this to see if it could pick the right meaning based on the story.
  • The "Code-Mixed" Collection: They gathered examples of people mixing English and Sinhala, a very common habit that was previously ignored by researchers.

4. The Results: Who Won the Race?

The team tested their tools against other methods (like Google's tools or older rule-based systems).

  • The Old Way: The old rule-based systems were like a rigid teacher; they failed when students broke the rules.
  • The New Way: The new "Super-Reader" (BERT-based) models were like a wise mentor. They understood the context and got the answers right almost every time.
  • The Score: In tests, their best model got a score of 91% (BLEU score) and made very few mistakes, while older models made many more errors.

5. What's Next?

The team is currently working on a predictive text feature. Imagine a keyboard that doesn't just translate what you typed, but guesses what you are going to type next, even if you are typing in a messy, personal style. They are using a special learning technique (Meta-Learning) so the keyboard can learn your specific typing habits quickly, without needing to store your private data on a server.

Summary

The Swa-bhasha team built a bridge between the messy, informal way Sri Lankans type on English keyboards and the formal, beautiful Sinhala script. They started with simple rule-books, moved to statistical detectives, and finally built a "Super-Reader" AI that understands context. They also built the massive libraries of data needed to teach these AIs. Their work proves that with the right tools, even a low-resource language like Sinhala can be understood perfectly by computers, even when people type it in a hurry.

Important Note: The paper focuses strictly on the technology of translating text and the data used to train it. It does not claim to have medical applications, clinical uses, or specific future products beyond the research tools and open-source code they have released.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →