fuzzyset.js is a data structure that performs something akin to fulltext search against data to determine likely mispellings and approximate string matching.
The usage is simple. Just add a string to the set, and ask for it later by using
a = FuzzySet();a.add("michael axiak");
[[0.8461538461538461, 'michael axiak']];
The result will be an array of
[score, matched_value] arrays. The score is between 0 and 1, with 1 being a perfect match
Subscribe to email newsletter for latest jQuery plugins & tutorials.