Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 0.498 kb
module Picky
# encoding: utf-8
#
module Generators
module Similarity
# It's actually a combination of metaphone
# and Levenshtein.
#
# It uses the metaphone to get similar words
# and ranks them using the levenshtein.
#
class Metaphone < Phonetic
# Encodes the given string/symbol.
#
# Returns a symbol.
#
def encode str_or_sym
str_or_sym.metaphone
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.