How-To

Tashkil Online: How to Add Arabic Diacritics Automatically

Tashkil online, plain Arabic text turned into fully diacritized Arabic text automatically
On this page
  1. What Is Tashkil Online, and What Does It Add to Arabic Text?
  2. Why Is Arabic Usually Written Without Diacritics?
  3. How Does Automatic Tashkil Work?
  4. How Accurate Is Automatic Arabic Diacritization in 2026?
  5. Should You Use Full or Partial Tashkil?
  6. How Do You Add Tashkil to Arabic Text Automatically, Step by Step?
  7. How Do You Check Automatic Tashkil Before You Publish?
  8. What Mistakes Does Automatic Tashkil Still Make?
  9. Does Tashkil Help Arabic Text to Speech?
  10. How Does Munsit Add Tashkil Automatically?
  11. Disclaimers

Most Arabic is written without its short vowels, so a single spelling can stand for several different words. Fluent readers fill the gaps from context, but learners, voice engines and anyone reading a name for the first time cannot. Adding the marks by hand is slow, and researchers behind the Sadeed model point out that modern writing usually omits diacritics because each one takes extra keystrokes. Their survey of training data also found that the largest diacritized corpus, about 75 million words, is only around 1.15% Modern Standard Arabic, which is why many tools handle classical text better than today’s Arabic.

Munsit adds tashkīl to Arabic text automatically. You send plain Arabic and get it back with harakat on every letter, ready for learning materials, publishing or Munsit’s natural Arabic text to speech. This guide explains what online tashkil adds, how accurate it is in 2026, when to use full or partial marks, and a simple check that catches changed words before you publish.

What Is Tashkil Online, and What Does It Add to Arabic Text?

Tashkil online is a tool that adds Arabic diacritics to plain text automatically: you paste or send undiacritized Arabic and get the same words back with their short vowels and other marks. It saves typing every mark by hand and tells readers and voice engines exactly how each word is said.

The word tashkīl comes from the idea of giving letters their form. In practice it covers eight marks. Three are short vowels, one marks the absence of a vowel, one doubles a letter, and three are the tanween endings that add an n sound at the end of a word.

The eight Arabic diacritics added by tashkil: fatha, damma, kasra, sukun, shadda and three tanween marks, shown on the letter baa

The eight marks an automatic tashkil tool adds.

TermWhat it meansWhere you will see it
Tashkil or tashkeelAdding the diacritic marks to Arabic textSearch terms, tool names, Arabic textbooks
HarakatThe short vowel marks themselvesLearning apps and grammar guides
DiacritizationThe technical name for adding the marks automaticallyResearch papers and developer tools
VowelizationAnother English name for the same taskOlder tools and dictionaries

Why Is Arabic Usually Written Without Diacritics?

Arabic is usually written without diacritics because fluent readers can work out the vowels from context, and adding them takes extra effort for every letter. The cost is ambiguity: the same written word can be read as different words with different meanings.

The three letters ain, laam and meem show the problem. Depending on the marks, they can mean knowledge, flag, he knew or he was taught. A person reading a full sentence will usually guess correctly. A learner, a screen reader or a text to speech engine reading the same sentence has a much harder job.

The Arabic word ilm written without diacritics, and four diacritized readings meaning knowledge, flag, he knew and he was taught

Without tashkeel, the reader has to guess which word is meant.

Researchers behind the CATT model describe tashkeel as something that greatly enhances the comprehension of Arabic text by removing this ambiguity. That is why fully diacritized text is standard in children’s books, school materials and religious texts, while newspapers and messages usually leave the marks out.

How Does Automatic Tashkil Work?

Automatic tashkil works by reading the whole sentence and predicting the most likely mark for each letter from the words around it. Modern tools use neural networks trained on large collections of Arabic text that people have already diacritized.

Two kinds of decision happen at once. The first is the inner marks of each word, which decide which word it is, such as ilm (knowledge) or alam (flag). The second is the final mark, or case ending, which depends on the grammar of the whole sentence: whether the word is a subject, an object or follows a preposition. The second kind is harder, because the clue can sit several words away.

ApproachHow it worksStrength and weakness
Rule basedGrammar rules and dictionaries choose the marksPredictable, but misses words and sentences outside its rules
Neural sequence modelsA network trained on diacritized text predicts a mark for each letterStrong on news and standard text; the approach behind most current tools
Language model basedA small or large language model rewrites the text with marksUses wide context, but can change or invent words, so outputs need checking

The last row matters in practice. When the Sadeed team tested their language model on their new benchmark, they reported a word error rate of 9.92%, and attributed about 7.19 points of it to hallucinated words, meaning words the model changed rather than marked. A good tashkil workflow therefore checks that the letters coming out are the same letters that went in.

How Accurate Is Automatic Arabic Diacritization in 2026?

The best published systems get about 97% of words fully right on standard news text. A 2025 EMNLP paper reported word error rates of 3.12% and 2.70% on two versions of the WikiNews benchmark, the lowest it measured.

That paper, by researchers at Hamad Bin Khalifa University, also introduced WikiNews 2024, a benchmark reviewed by two expert linguists that accepts more than one correct answer where Arabic allows it. Accuracy is measured in two ways, and they tell you different things.

MeasureWhat it countsWhat it means for you
Diacritic error rate (DER)The share of letters with a wrong markLooks small, because most letters are easy
Word error rate (WER)The share of words with at least one wrong markCloser to the editing work you will do
With or without case endingsWhether the final mark of each word is scoredScores without case endings look better; full tashkil needs them

Put in editing terms, a 2.7% word error rate on a 1,000 word article still leaves about 27 words to fix. Results on news text also do not carry over to every kind of writing. Accuracy drops on classical poetry, dialect, technical terms and names, which is why the review steps later in this guide focus on those.

Should You Use Full or Partial Tashkil?

Use full tashkil when every word must be read one way, such as for text to speech, children, learners and exams. Use partial tashkil when readers are fluent and you only need to remove doubt from a few words.

The same Arabic sentence shown with no diacritics, partial diacritics, inner marks only, and full tashkil with case endings

Four levels of tashkil for one sentence.

UseLevelWhy
Arabic text to speech and AI voice generatorsFullThe voice reads exactly what is written, including endings
Children’s books and early readersFullNew readers rely on every mark to sound out words
Courses for non native learnersFullLearners copy the pronunciation they see
Exams and school materialsFull or inner marksRemoves doubt in questions and answer choices
Articles, reports and websitesPartialFluent readers find full marks slow to read
Names in apps, menus and voice promptsPartial, on the namesNames are where readers and voices guess wrong most
SubtitlesNone or partialShort lines must be read quickly

For education teams, our guide to text to speech for digital learning covers how fully diacritized text turns into narrated lessons.

How Do You Add Tashkil to Arabic Text Automatically, Step by Step?

To add tashkil automatically, clean the text, choose the level you need, run it through a diacritization tool, then check that no words changed and review the words that tools find hardest. The whole process takes a few minutes for a page of text.

  1. Clean the text first. Fix spelling mistakes and typos, remove stray marks left from copying, and keep hamza and taa marbuta as written, because a tool marks the word it sees, not the word you meant.
  2. Choose the level. Decide between full, inner marks or partial tashkil using the table above, so you know what the result should look like.
  3. Mark the words you already know. If your tool keeps marks you add, put the correct tashkeel on names and key terms before you run it, so they stay as you want them.
  4. Run the text through the tool. Send it in sentences or paragraphs rather than single words, because the tool needs context to choose the right reading.
  5. Check that the letters did not change. Remove the marks from the output and compare it with your input, word by word, using the short script below.
  6. Review the hard words. Read names, foreign words, numbers and case endings aloud, or have a native speaker do it, and correct any marks that are wrong.
  7. Keep a list of fixes. Save corrected names and terms in a glossary and reuse them, so the same mistake does not come back in the next document.

The third step works because some modern systems are built to keep marks a user has already added; the EMNLP 2025 paper above describes a model that preserves user provided diacritics while keeping its accuracy.

How Do You Check Automatic Tashkil Before You Publish?

Check automatic tashkil in two passes: first confirm by script that every word is the same once the marks are removed, then read the names, foreign words and case endings yourself. The first pass catches changed words in seconds; the second catches wrong marks that a script cannot judge.

The script below is one we wrote and tested for this guide. Save your plain text as input.txt and the diacritized result as output.txt, then run it with Python 3. It removes the eight marks from each output word, compares it with the input word, lists any word that changed, and reports how many letters carry a mark, which tells you roughly whether you got full or partial tashkil.

python
check_tashkil.py
# Compare plain Arabic input with the diacritized output.
# Usage: python3 check_tashkil.py input.txt output.txt
import sys

MARKS = {chr(c) for c in range(0x064B, 0x0653)} | {chr(0x0670)}
LETTERS = {chr(c) for c in range(0x0621, 0x064B)}

def strip(text):
    return "".join(ch for ch in text if ch not in MARKS)

src = open(sys.argv[1], encoding="utf8").read().split()
out = open(sys.argv[2], encoding="utf8").read().split()

if len(src) != len(out):
    print("Word count changed:", len(src), "in,", len(out), "out")

changed = 0
for i, (a, b) in enumerate(zip(src, out), start=1):
    if strip(a) != strip(b):
        changed += 1
        print("Word", i, "changed:", a, "became", b)

letters = sum(1 for w in out for ch in w if ch in LETTERS)
marked = sum(1 for w in out for j, ch in enumerate(w)
             if ch in LETTERS and j + 1 < len(w) and w[j + 1] in MARKS)
print("Changed words:", changed)
print("Letters carrying a mark:", round(100 * marked / max(letters, 1)), "%")

In our test, we gave it a five word sentence and an output in which the last word had been turned from library into libraries. The script flagged word 5 as changed and reported 62% of letters carrying a mark, so a reviewer knew exactly where to look. A fully marked sentence usually scores well above half of its letters, because long vowel letters and the article often carry no mark.

CheckHowWhat it catches
Letters unchangedRun the scriptWords the tool rewrote or invented
CoverageRead the percentage the script reportsPartial output when you needed full tashkil
Names and termsCompare with your glossaryNames marked as ordinary words
Case endingsRead each sentence aloudWrong endings after prepositions and in long sentences
Listening testPlay it through text to speechAny word that still sounds wrong

What Mistakes Does Automatic Tashkil Still Make?

Automatic tashkil still makes most of its mistakes on names, foreign words, dialect, case endings and text it was not trained on. Knowing these patterns tells you which words to review instead of rereading everything.

Names are the clearest example. A 2025 study on proper nouns in Arabic Wikipedia found that a leading large language model restored the full diacritics of names with 73% accuracy, even when it was also given the English spelling of the name.

MistakeWhy it happensHow to fix it
Wrong marks on namesNames can be read several ways and are rare in training dataMark names yourself and keep a glossary
Foreign words in Arabic scriptBrand and technical words do not follow Arabic patternsLeave them unmarked or mark them from the original pronunciation
Wrong case endingsThe ending depends on grammar that may sit several words awayRead endings aloud, or use inner marks only where endings are not needed
Dialect text marked as FushaMost training data is classical or standard ArabicUse partial marks on dialect words, or rewrite the line in Fusha
Changed or invented wordsLanguage model tools can rewrite as well as markRun the letter check before anything else
NumbersDigits carry no marks, but spoken numbers doWrite numbers as words when the text will be read aloud
Quranic and religious textExact marks matter and differ by reading traditionCopy from a verified source; do not diacritize automatically

Does Tashkil Help Arabic Text to Speech?

Yes. Tashkil helps Arabic text to speech because the voice reads the marks it is given, so a fully diacritized script removes the guessing that causes wrong words and wrong endings. It matters most for names, rare words and Fusha narration.

A modern Arabic AI voice generator predicts missing vowels on its own, and gets most everyday words right. The words it gets wrong are the same ones a diacritization tool finds hardest. Adding tashkeel to those words before you generate audio is the quickest fix. Our article on Arabic text to speech with tashkeel walks through that workflow, and our guide to writing Arabic scripts for text to speech covers numbers, abbreviations and punctuation.

SituationWithout tashkilWith tashkil
Everyday words in clear contextUsually read correctlyRead correctly
Names and rare wordsThe voice may guess the wrong vowelsRead exactly as marked
Words with several meaningsReading depends on the model’s guessOne reading, fixed by the marks
Fusha narration with case endingsEndings may be dropped or wrongEndings read as written

How Does Munsit Add Tashkil Automatically?

Munsit adds tashkil automatically through its tashkīl tool, which takes plain Arabic text and returns it with diacritics. The same platform turns that text into natural Arabic speech, so you can diacritize, listen and fix in one place.

  • Automatic diacritization: Munsit’s tashkīl tool adds harakat to Arabic text, so names, rare words and ambiguous words are marked before they are read or spoken.
  • Built for Arabic speech: Munsit’s text to speech understands more than 25 Arabic dialects with no dialect setting needed, and offers natural voices across Gulf dialects plus MSA.
  • Tested with listeners: in Munsit’s Arabic TTS Benchmark 2026, 352 listeners made 3,602 evaluations, and Munsit was picked as the top voice in 53.1% of comparisons against 25.7% for human recordings.
  • Developer access: developers can call diacritization through the Munsit API at the /tashkil/diacritize endpoint, alongside text to speech, speech to text and voice cloning.
  • Private setups: for government, banking, healthcare and other teams with data residency needs, Munsit can run on your own servers, inside your network.
  • Free to try: free credits on signup, with no card needed.

See how the voices compare in the Arabic TTS Benchmark 2026, explore the Munsit text to speech model, or read our guide to the Arabic text to speech API if you are building tashkil and voice into your own product.

Disclaimers

  • Munsit product details, including the tashkīl tool, the diacritization endpoint, dialect support, private setups and free credits, come from Munsit documentation in November 2026 and may change. Check the documentation for request formats and options.
  • Benchmark figures come from Munsit’s Arabic TTS Benchmark 2026. Research findings come from the Sadeed, CATT and EMNLP 2025 diacritization papers and the 2025 study on proper noun diacritization, and reflect the test sets used in those studies.
  • The check script and its test result were written and run for this article. Treat it as a starting point and adapt it to your own text.
  • Quranic and religious text should always be taken from verified sources. Nothing in this article is religious guidance.

Frequently asked questions

What is tashkil online?

Tashkil online is a tool that adds Arabic diacritics, or harakat, to plain Arabic text automatically, returning the same words with their short vowels, sukun, shadda and tanween marks so they can be read only one way.

Is tashkil the same as tashkeel?

Tashkil and tashkeel are two English spellings of the same Arabic word, and both mean adding diacritic marks to Arabic text.

How accurate is automatic Arabic diacritization?

The best published Arabic diacritization systems reached word error rates of about 2.7% to 3.1% on news benchmarks in 2025, which means roughly three words in every hundred may still need a correction.

Should I use full or partial tashkil?

Full tashkil suits text to speech, children’s books, learners and exams, while partial tashkil, which marks only words that could be misread, suits articles, websites and other text for fluent readers.

Can automatic tashkil be used on Quranic text?

Quranic and other religious text should be copied from a verified, already diacritized source rather than diacritized automatically, because exact marks matter and differ by reading tradition.

Does automatic tashkil work on Arabic dialects?

Automatic tashkil is most reliable on Modern Standard Arabic, because most training data is standard or classical Arabic, so dialect text is best given partial marks on key words or reviewed by a native speaker.

Why does Arabic text to speech need tashkil?

Arabic text to speech needs tashkil because most Arabic is written without short vowels, so marking names, rare words and case endings tells the voice exactly how to pronounce them instead of leaving it to guess.

How can I check that a tashkil tool did not change my text?

To check a tashkil tool did not change your text, remove the diacritic marks from the output and compare each word with your original input; any word that differs was changed rather than marked.

Can developers add tashkil through an API?

Developers can add tashkil through the Munsit API, which offers a diacritization endpoint alongside Arabic text to speech, speech to text and voice cloning, with free credits on signup.

ShareLinkedInXWhatsApp