Skip to content

preciz/levenshtein

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Levenshtein

test

Levenshtein distance implementation in Elixir.

Credits go to the Elixir language source code where it was removed from in 2015: GitHub PR.

Installation

The package can be installed by adding levenshtein to your list of dependencies in mix.exs:

def deps do
  [
    {:levenshtein, "~> 0.3.0"}
  ]
end

Usage

iex> Levenshtein.distance("same", "same")
0
iex> Levenshtein.distance("this", "that")
2
iex> Levenshtein.distance("kitten", "sitting")
3

License

Levenshtein is MIT licensed.

About

Levenshtein distance implementation in Elixir.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages