Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanCommon cleans too much #16

Open
alhoqbani opened this issue Jul 11, 2017 · 0 comments
Open

cleanCommon cleans too much #16

alhoqbani opened this issue Jul 11, 2017 · 0 comments

Comments

@alhoqbani
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant