开发者

google-like comparsion: "Did you mean *******?" - native PHP function

I know similar question was answered a lot times before, but I hope this is little bit releated, not a dupe.

Some time ago, I had some search-engine source code, and there was function which found similar words for inserted. It was NATIVE PHP FUNCTION.

Does anybody know similar function? I found this one

http://www.php.net/manual/en/function.similar-开发者_StackOverflow社区text.php

but it is not EXACTLY what I mean.


Levenshtein maybe ?


http://soundofemotion.com/spellcorrect.txt or maybe http://www.phpclasses.org/package/4859-PHP-Suggest-corrected-spelling-text-in-pure-PHP.html

i found them searching for the same in python

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜