linuxscout / pyarabic

pyarabic
GNU General Public License v3.0
450 stars 85 forks source link

function araby.is_arabicword somwtimes return true for a sentence without spaces #76

Open esluvleil10 opened 4 months ago

esluvleil10 commented 4 months ago

When spaces are deliberately removed from a sentence like "'حطتخطاياهولوكانتمثلزبدالبحر" which is originally "'حطت خطاياه ولوكانت مثل زبد البحر", the function will return True

linuxscout commented 4 months ago

Thank you for your remark, there is a problem to fix the max length of an arabic valid word, because we can have long words with only letters, and the length will be doubled if diacritics are added.