Skip to content

Rostepher/strcmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A gem to compare strings and compute a distance or other metric between two strings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published