Strip Functions
set of utility functions for stripping various characters from Arabic text.
Table of Contents
stripHarakat
Syntax
Description
Removes harakat (vowel marks) from the given text if it is vocalized except Shadda.
Parameters
text
(string): The input Arabic text.
Returns
(string): The modified text with harakat except Shadda removed.
Example
stripLastHaraka
Syntax
Description
Removes the last haraka (vowel mark) from the given text if it is vocalized.
Parameters
text
(string) The input Arabic text.
Returns
string
The modified text with the last haraka removed.
Example
stripTashkeel
Syntax
Description
Removes tashkeel (diacritic marks) from the given text if it is vocalized.
Parameters
text
(string) The input Arabic text.
Returns
string
The modified text with tashkeel removed.
Example
stripSmall
Syntax
Description
Removes all Small Alef (الخنجرية),Small WAW ,Small Yeh Arabic from the given text.
Parameters
text
(string) The input Arabic text.
Returns
string
The modified text with small Arabic Small Alef (الخنجرية),Small WAW ,Small Yeh removed.
Example
stripTatweel
Syntax
Description
Removes tatweel (elongation character) from the given text.
Parameters
text
(string) The input Arabic text.
Returns
string
The modified text with tatweel removed.
Example
stripShadda
Syntax
Description
Removes shadda (stress mark) from the given text.
Parameters
text
(string): The input Arabic text.
Returns
string
The modified text with shadda removed.
Example
Last updated