What else is missing in the logic functions for more practical and wide application?

All, Hello.

There is a function to search for words and phrases with fuzzy end of words when matching words of search string with the words from the text to be searched.

Code - here.

I believe that this decision is not finished.

Advise/tell me what else you want to add to the function to use is much more practical and in the broader list of tasks and projects that require similar functionality.

In advance, Thank you all for your advice.
PS: Thanks to those who put a star on github!
June 14th 19 at 20:47
1 answer
June 14th 19 at 20:49
Bad code.
  1. There is no review, distorting the formatting.
  2. A lot of regexps that will inhibit.
  3. Instead of duplicating the top and bottom of the register it is necessary to use the modifier "i".
  4. The character i have in $OnlyEn and $Eng.
  5. Why Russian characters are change in English have similar spellings? And Vice versa.
  6. Is not considered that the proposal can be punctuation.
  7. Search partial occurrence has no relation to any Russian, nor English languages. For example, this algorithm considers the words "par", "Park", Paris", "Barber", etc. - the same word.
  8. If it solves the problem of searching occurrences, it is not necessary to invent a Bicycle with square wheels. Easier to cut off the end and call the finished function ru2.php.net/manual/en/function.mb-stristr.php

Find more questions by tags AlgorithmsFuzzy logicPHPText processing