<p>Can you suggest some light weight fuzzy text search library?</p>

<p>What I want to do is to allow users to find correct data for search terms with typos.</p>

<p>I could use full-text search engines like Lucene, but I think it's an overkill.</p>

<p><strong>Edit:</strong><br>
To make question more clear here is a main scenario for that library:<br>
I have a large list of strings.  I want to be able to search in this list (something like MSVS' intellisense) but it should be possible to filter this list by string which is not present in it but close enough to some string which is in the list.<br>
Example:  </p>

<ul>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ul>

<p>When I type 'Gren' or 'Geen' in a text box, I want to see 'Green' in the result set.</p>

<p>Main language for indexed data will be English.</p>

<p>I think that Lucene is to heavy for that task.</p>

<p><strong>Update</strong>:</p>

<p>I found one product matching my requirements. It's <a href="http://shuffletext.com/Highlight/" rel="noreferrer">ShuffleText</a>.<br>
Do you know any alternatives?</p>

[{'answer_id': 41989, 'author': 'ceejayoz', 'author_id': 1902010, 'author_profile': 'https://Stackoverflow.com/users/1902010', 'pm_score': 0, 'selected': False, 'text': '<p>@aku - links to working soundex libraries are right there at the bottom of the page.</p>\n\n<p>As for Levenshtein distance, the <a href="http://en.wikipedia.org/wiki/Levenshtein_distance" rel="nofollow noreferrer">Wikipedia article on that</a> also has implementations listed at the bottom.</p>\n'}, {'answer_id': 42029, 'author': 'ColinYounger', 'author_id': 1223, 'author_profile': 'https://Stackoverflow.com/users/1223', 'pm_score': 1, 'selected': False, 'text': '<p>Soundex is very \'English\' in it\'s encoding - Daitch-Mokotoff works better for many names, especially European (Germanic) and Jewish names. In my UK-centric world, it\'s what I use.</p>\n\n<p>Wiki <a href="http://en.wikipedia.org/wiki/Daitch-Mokotoff_Soundex" rel="nofollow noreferrer">here</a>.</p>\n'}, {'answer_id': 42075, 'author': 'erickson', 'author_id': 3474, 'author_profile': 'https://Stackoverflow.com/users/3474', 'pm_score': 2, 'selected': False, 'text': '<p>Lucene is very scalable&mdash;which means its good for little applications too. You can create an index in memory very quickly if that\'s all you need.</p>\n\n<p>For fuzzy searching, you really need to decide what algorithm you\'d like to use. With information retrieval, I use an <a href="http://en.wikipedia.org/wiki/N-gram#n-grams_for_approximate_matching" rel="nofollow noreferrer">n-gram</a> technique with Lucene successfully. But that\'s a special indexing technique, not a "library" in itself.</p>\n\n<p>Without knowing more about your application, it won\'t be easy to recommend a suitable library. How much data are you searching? What format is the data? How often is the data updated?</p>\n'}, {'answer_id': 637354, 'author': 'marzagao', 'author_id': 10997, 'author_profile': 'https://Stackoverflow.com/users/10997', 'pm_score': 1, 'selected': False, 'text': '<p>If you can choose to use a database, I recommend using PostgreSQL and its <a href="http://www.postgresql.org/docs/8.3/static/fuzzystrmatch.html" rel="nofollow noreferrer">fuzzy string matching functions</a>.</p>\n\n<p>If you can use Ruby, I suggest looking into the <a href="http://flori.github.com/amatch/" rel="nofollow noreferrer">amatch library</a>.</p>\n'}, {'answer_id': 2003978, 'author': 'Shayne', 'author_id': 243634, 'author_profile': 'https://Stackoverflow.com/users/243634', 'pm_score': 1, 'selected': False, 'text': '<p>You didn\'t specify your development platform, but if its PHP then suggest you look at the ZEND Lucene lubrary :</p>\n\n<p><a href="http://ifacethoughts.net/2008/02/07/zend-brings-lucene-to-php/" rel="nofollow noreferrer">http://ifacethoughts.net/2008/02/07/zend-brings-lucene-to-php/</a>\n<a href="http://framework.zend.com/manual/en/zend.search.lucene.html" rel="nofollow noreferrer">http://framework.zend.com/manual/en/zend.search.lucene.html</a></p>\n\n<p>As it LAMP its far lighter than Lucene on Java, and can easily be extended for other filetypes, provided you can find a conversion library or cmd line converter - there are lots of OSS solutions around to do this.</p>\n'}, {'answer_id': 3684967, 'author': 'Igor', 'author_id': 444373, 'author_profile': 'https://Stackoverflow.com/users/444373', 'pm_score': 1, 'selected': False, 'text': '<p>Try Walnutil - based on Lucene API - integrated to SQL Server and Oracle DBs . You can create any type of index and then use it. For simple search you can use some methods from walnutilsoft, for more complicated search cases you can use Lucene API. See web based example where was used indexes created from Walnutil Tools. Also you can see some code example written on Java and C# which you can use it for creating different type of search.\nThis tools is free. \n<a href="http://www.walnutilsoft.com/" rel="nofollow noreferrer">http://www.walnutilsoft.com/</a></p>\n'}, {'answer_id': 9643937, 'author': 'alexandru.topliceanu', 'author_id': 993508, 'author_profile': 'https://Stackoverflow.com/users/993508', 'pm_score': 0, 'selected': False, 'text': '<p>A powerful, lightweight solution is <a href="http://sphinxsearch.com/" rel="nofollow">sphinx</a>.</p>\n\n<p>It\'s smaller then Lucene and it supports disambiguation.</p>\n\n<p>It\'s written in c++, it\'s fast, battle-tested, has libraries for every env and it\'s used by large companies, like <a href="http://craigslist.org" rel="nofollow">craigslists.org</a></p>\n'}, {'answer_id': 13061621, 'author': 'Vadim', 'author_id': 1773123, 'author_profile': 'https://Stackoverflow.com/users/1773123', 'pm_score': 2, 'selected': False, 'text': '<p>I\'m not sure how well Lucene is suited for fuzzy searching, the custom library would be better choice. For example, this search is done in Java and works pretty fast, but it is custom made for such task:\n<a href="http://www.softcorporation.com/products/people/" rel="nofollow">http://www.softcorporation.com/products/people/</a></p>\n'}]
['https://Stackoverflow.com/questions/41970', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1196/']