Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does google know if I type in redflower.jpg I mean Red Flower?

I'm curious what the programming terms or methodology is used when Google shows you the "did you mean" link for a word that is made up of multiple words?

For example if I type in "redflower.jpg" It knows to break that up into Red Flower Is there a common paradigm for doing that sort of operation? Would a Lucene search give you that?

thanks!

like image 271
James Avatar asked Jul 21 '10 18:07

James


2 Answers

If google does not see a lot of matching results for reflowers.jpg, it might then try to cut the words in multiple words until it finds a lot of matching results.

It might also recognize the extension (.jpg), recognize the image extension and then try to find images with the similar name.

If I would have to make an algorithm like this, I would use an huge EXISTING database (either a dictionary or a search engine) and then try what I said in the beginning of my post.

like image 150
Ted Gueniche Avatar answered Nov 03 '22 21:11

Ted Gueniche


Perhaps they could to look at what other people do when they have searched for redflowers.jpg? Maybe a number of people searched for "redflowers.jpg", didn't click on any links, and then searched for "Red Flower" and found some results worth clicking on.

Of course they would have to take into account that the queries are similar (contain matching strings), otherwise some strange results might appear.

like image 1
destinsmithn Avatar answered Nov 03 '22 23:11

destinsmithn