Function signature
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:- Converts wasl alef to regular alef - Replaces U+0671 (wasl alef) with U+0627 (regular alef)
- 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 bynormalizeArabic() as the first step in the normalization pipeline.