Skip to content

deepfryed/fuzzy-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

fuzzy string matching alorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published