0.0
No commit activity in last 3 years
No release in over 3 years
A collection of functions for fuzzy string matching.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

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