levenshtein.rb

Path: lib/text/levenshtein.rb
Last Update: Tue Mar 01 23:34:32 +0000 2016

Levenshtein distance algorithm implementation for Ruby, with UTF-8 support.

The Levenshtein distance is a measure of how similar two strings s and t are, calculated as the number of deletions/insertions/substitutions needed to transform s into t. The greater the distance, the more the strings differ.

The Levenshtein distance is also sometimes referred to as the easier-to-pronounce-and-spell ‘edit distance’.

Author: Paul Battley (pbattley@gmail.com)

[Validate]