Google function

Post Reply
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

Google function

Post 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
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply