ar-php icon indicating copy to clipboard operation
ar-php copied to clipboard

cleanCommon cleans too much

Open alhoqbani opened this issue 8 years ago • 0 comments

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.

alhoqbani avatar Jul 11 '17 11:07 alhoqbani