lexmag/simetric


String similarity metrics for Elixir

License: ISC

Language: Elixir


Simetric

Build Status Hex Version

Simetric provides facilities to perform approximate string matching and measurement of string similarity/distance. The library is focusing on speed and completeness.

Available metrics

Installation

Add Simetric as a dependency to your mix.exs file:

defp deps do
  [{:simetric, "~> 0.1.0"}]
end

Then, run mix deps.get in your shell to fetch the new dependency.

Usage

Jaro–Winkler:

Simetric.Jaro.Winkler.compare("dwayne", "duane") # => 0.8400000000000001
Simetric.Jaro.Winkler.compare("hardin", "martinez") # => 0.7222222222222222
Simetric.Jaro.Winkler.compare("same", "same") # => 1.0

Levenshtein:

Simetric.Levenshtein.compare("gumbo", "gambol") # => 2
Simetric.Levenshtein.compare("kitten", "sitting") # => 3

License

Simetric is released under the ISC license.

Project Statistics

Sourcerank 6
Repository Size 13.7 KB
Stars 35
Forks 3
Watchers 1
Open issues 0
Dependencies 0
Contributors 2
Tags 3
Created
Last updated
Last pushed

Top Contributors See all

Aleksei Magusev Low Kian Seong

Packages Referencing this Repo

simetric
This library provides facilities to perform approximate string matching and measurement of string...
Latest release 0.2.0 - Updated - 35 stars

Recent Tags See all

v0.2.0 May 20, 2017
v0.1.0 March 07, 2015
v0.0.1 November 22, 2014

Interesting Forks See all

liveforeverx/simetric
String similarity metrics for Elixir
Elixir - ISC - Updated - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2017-05-21 00:55:03 UTC

Login to resync this repository