From: Andrew Skegg Date: 2006-08-02T09:37:57+09:00 Subject: Re: Mini quiz (Was: Detecting similar strings) A quick search on Google reveals a levenshtein ruby function has already been created. http://po-ru.com/projects/levenshtein/ To my untrained eye (I am new to Ruby) using the levenshtein distance to calculate what someone might have meant to type mught be expensive. You will need to calculate the distance for all values in the field to compare it with the user input, then pick the small distances and display them as options. As the list of values grows larger, your app will bog down. Perhaps a better way is to use an auto-complete ajax call on the input field? Andrew On Wednesday, August 02, 2006, at 09:42AM, Hal Fulton wrote: >Nuralanur@aol.com wrote: >>>It's missing from wikipedia though. >> >> >> Does wikipedia provide the code for the implementations it lists? >> Maybe Hal would be so kind to add it then, if we ask him politely >> to do so :) > >Ping me in a week and I will... > >Hal > > > >