C# WinApp: Let’s say I search for dtg but the items that I am searching in are dvg , dz, dxg … so I want it to find dvg for me because it is closer to dtg that I was searching for.
I know there are some NP-hard algorithms for that but really I do not want to spend a ton of time on this. is there any String methods that does something close to this? or can do it with a few extra liens of code?
C# WinApp: Let’s say I search for dtg but the items that I am
Share
You want to use a Soundex. If I can find a link to some code I’ll get you some. I did a spell checker using Soundexes, and it’s exactly what you’re looking for.
In the meantime, this google search should help:
http://www.google.com/search?q=C%23+soundex&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
Here’s a good C# implementation: http://www.builderau.com.au/program/csharp/print.htm?TYPE=story&AT=339291792-339028385t-320002002c