Project

strcmp

0.0
No commit activity in last 3 years
No release in over 3 years
A simple ruby gem that is used to compute how similar two strings are to one another. It includes a fast C implementation of the jaro-winkler distance algorith and soon the levenshtein distance algorithm. More metrics on the way.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

strcmp

Strcmp is a simple ruby gem that is used to compute how similar two strings are to one another. It includes a fast C implementation of the [jaro-winkler] (http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance) distance algorithm and soon the levenshtein distance algorithm. More metrics on the way. I claim no ownership of the algorithm.

Installing

gem install strcmp

Usage

Using the gem is simple. First add the require statement to the file you wish to use it in.

require 'strcmp'

To use the gem call:

StrCmp.jaro_winkler("martha", "marhta") => 0.961111
StrCmp.jaro("martha", "marhta") => 0.944444