Skip to main content

Function signature

Removes Tashkeel (diacritics) and Quranic marks from Arabic text.

Parameters

string
required
The input Arabic text containing diacritics and Quranic marks

Returns

string
Text without diacritics and Quranic marks

What transformations are applied

The function applies two transformations:
  1. Converts wasl alef to regular alef - Replaces U+0671 (wasl alef) with U+0627 (regular alef)
  2. Removes all diacritical marks - Strips the following Unicode ranges:
    • U+064B - U+065F (Arabic diacritics including fatha, kasra, damma, sukun, shadda, etc.)
    • U+0670 (dagger alef)
    • U+06D6 - U+06DC (Quranic annotation marks)
    • U+06DF - U+06E8 (Quranic pause marks and signs)
    • U+06EA - U+06FC (Quranic marks)

Use case

Stripping diacritics (tashkeel) for display or simple comparisons. This function is also used internally by normalizeArabic() as the first step in the normalization pipeline.

Examples

Basic usage

Before and after

Removing Quranic marks

Difference from normalizeArabic()