Page 1 of 1

Google function

Posted: Sun Apr 30, 2006 11:48 pm
by George
Using www.google.com when you mispelled a word, by example: 'algorithmm'
you receive the following message:
Did you mean: algorithm

Do you have any Idea, Sugestion, or maye some algorithm :) to be implemented in a xHarbour program like that google function ?


Regards


George

Posted: Mon May 01, 2006 4:27 pm
by George
Soundex() is interesting. But is not the solution

The real problem is that I am talking about names. I want to implement the function in a database name with ten of thousands of names, no only english name (maybe spanish, arabs, and asians names). If I search for "RAMIREZ" and I write "RSMIREX", I would like that the function return a list with a few names close to RSMIREX.


George

Posted: Mon May 01, 2006 7:45 pm
by Antonio Linares
George,

Same as Google uses "page rank" to provide each page a specific importance or weight, you may need to keep a "word rank" so you can locate what are the most commonly used words based on their ranks.