Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
fuzzy string matching alorithms
C Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ext/fuzzy-string
lib
test
.gitignore
CHANGELOG
README.md
Rakefile
fuzzy-string.gemspec

README.md

Fuzzy String

A compilation of functions that allow fuzzy string matching.

API

  FuzzyString
    .stem(word, language = "english")         #=> snowball stem of word
    .stem_languages                           #=> list of languages supporter by stemmer
    .soundex(word)                            #=> soundex code of english word
    .jaro_winkler_distance(string1, string2)  #=> numeric Jaro-Winkler distance of two strings (0-1) 1: same 0: different
    .levenstein_distance(string1, string2)    #=> numeric levenstein distance of two strings (edit distance)

Example

require 'fuzzy-string'
FuzzyString.jaro_winkler_distance("apples", "apple")

License

Creative Commons Attribution - CC BY

Something went wrong with that request. Please try again.