pyarabic icon indicating copy to clipboard operation
pyarabic copied to clipboard

Update the strip_tashkeel and strip_diactricts to remove the alef after tanween al fateh

Open Mansari opened this issue 2 years ago • 2 comments

The strip_tashkeel and strip_diactricts functions are very helpful when preprocessing text that will be used for searches. With these functions, one can search for a word that like رحيم without tashkeel. However, one of the challenges is this will not match a word that had tanween al fateh at the end, as the word after removing the tashkeel will still be different in structure رحيما.

I suggest adding another optional flag (to support previous versions) that will also remove the alef if it comes after tanween al fateh. See https://en.rattibha.com/thread/1266046390439903234 for details

Thank you for the amazing library!

Mansari avatar Apr 09 '23 19:04 Mansari

Thank You brother Mohamed, It's a great suggestion, we can add it. Thanks

linuxscout avatar Apr 16 '23 18:04 linuxscout

Amazing - anything I can help with insha Allah?

Mansari avatar Apr 16 '23 20:04 Mansari