# How does google do the "did you mean...."?

**URL:** <https://discuss.rubyonrails.org/t/how-does-google-do-the-did-you-mean/14529>\
**Category:** rubyonrails-talk\
**Created:** [June 18, 2007, 4:57am UTC](https://discuss.rubyonrails.org/t/how-does-google-do-the-did-you-mean/14529 "2007-06-18T04:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gene\_Tani](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@Gene\_Tani](https://discuss.rubyonrails.org/u/Gene_Tani)\
**Post date:** [June 18, 2007, 4:57am UTC](https://discuss.rubyonrails.org/t/how-does-google-do-the-did-you-mean/14529/1 "2007-06-18T04:57:06Z")

</div>

there's several ways: Levenshtein distance, soundex, Metaphone and Phonex algo's. There've been threads on "spelling correction" here and in rubytalk.

---

<div class="post-metadata">

**Author:** ![August\_Lilleaas](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@August\_Lilleaas](https://discuss.rubyonrails.org/u/August_Lilleaas)\
**Post date:** [June 18, 2007, 5:05am UTC](https://discuss.rubyonrails.org/t/how-does-google-do-the-did-you-mean/14529/2 "2007-06-18T05:05:46Z")

</div>

A bunch of useful stuff: [http://text.rubyforge.org/](http://text.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Michael\_Latta](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@Michael\_Latta](https://discuss.rubyonrails.org/u/Michael_Latta)\
**Post date:** [June 18, 2007, 5:15am UTC](https://discuss.rubyonrails.org/t/how-does-google-do-the-did-you-mean/14529/3 "2007-06-18T05:15:23Z")

</div>

Have you looked at SOLR or other full text search plug-ins.

Michael
