Sha256: b1cf02d68c67f4e318d821e5883c76f795aad3354c13441ae42843b3921576c6
Contents?: true
Size: 536 Bytes
Versions: 15
Compression:
Stored size: 536 Bytes
Contents
# encoding: utf-8 # module Internals 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 symbol. # # Returns a symbol. # def encoded sym code = Text::Metaphone.metaphone sym.to_s code.to_sym if code end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems