Sha256: 1b611e5084b1a905da76bed752e3c6f579e29ed94f6be915912919b1e138b1bd
Contents?: true
Size: 216 Bytes
Versions: 2
Compression:
Stored size: 216 Bytes
Contents
require 'damerau-levenshtein' class Middleman::Blog::Similar::Algorithm::DamerauLevenshtein < ::Middleman::Blog::Similar::Algorithm def distance(a) ::DamerauLevenshtein.distance article.body, a.body end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
middleman-blog-similar-1.1.1 | lib/middleman-blog-similar/algorithm/damerau_levenshtein.rb |
middleman-blog-similar-1.1.0 | lib/middleman-blog-similar/algorithm/damerau_levenshtein.rb |