This project is read-only.
While all of the algorithms are exposed and can be used and can provide their raw results, they have been conveniently combined in a way that they can selectively be used to judge the approximate equality of two strings. This is done through the ApproximatelyEquals extension and by setting the desired FuzzyStringComparisonOptions and FuzzyStringComparisonTolerance.

For two strings that are desired to be compared approximately, a boolean response of equality can be garnered in the following way:

string source = "kevin";
string target = "kevyn";

List<FuzzyStringComparisonOptions> options = new List<FuzzyStringComparisonOptions>();

// Choose which algorithms should weigh in for the comparison

// Choose the relative strength of the comparison - is it almost exactly equal? or is it just close?
FuzzyStringComparisonTolerance tolerance = FuzzyStringTolerance.Strong;

// Get a boolean determination of approximate equality
bool result = source.ApproximatelyEquals(target, options, tolerance);

Last edited May 1, 2013 at 9:19 PM by kevinjones, version 2


dvela1 Aug 10, 2015 at 8:22 PM 
Any ideas on how I could send a list of strings and score them. Highest score being the most likeliest match?

dvela1 Aug 10, 2015 at 7:17 PM 
FuzzyStringComparisonTolerance tolerance = FuzzyStringTolerance.Strong;

Should actually be.

var tolerance = FuzzyStringComparisonTolerance.Strong;

jumpjack96 Feb 24, 2015 at 2:33 PM 
In Visual Studio, right click on your project, select properties. In the Application tab, select your Target Framework as .NET 4.5 (install .NET 4.5 on your system if you have not already).

Alternatively, rather than referencing the binary, download the source code add add the FuzzyString project to your solution and use it that way.

esb1922 Oct 14, 2014 at 3:47 AM 
not sure why but I can't make it working. I have ,NET 4.0 project and getting error -
The primary reference "FuzzyString" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".