You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method cleanCommon performs str_replaceon the full string, without parsing the string into separate words.
This will remove stopwords from the string even if it was part of a word. For example, الأهل will be replaced with الأ because هل, which is part of the word, is a stopword.
It should use preg_replace to replace only fill words, or explode the string into array of words.
The text was updated successfully, but these errors were encountered:
Method cleanCommon performs
str_replace
on the full string, without parsing the string into separate words.This will remove stopwords from the string even if it was part of a word. For example,
الأهل
will be replaced withالأ
becauseهل
, which is part of the word, is a stopword.It should use
preg_replace
to replace only fill words, or explode the string into array of words.The text was updated successfully, but these errors were encountered: