Sha256: ddb94f4328fed112e7cca88c244a7005446d4506e988d296658ec7719d0e83d5
Contents?: true
Size: 473 Bytes
Versions: 2
Compression:
Stored size: 473 Bytes
Contents
# 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 symbol. # # Returns a symbol. # def encoded sym code = Text::Metaphone.metaphone sym.to_s code.to_sym if code end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-2.7.0 | lib/picky/generators/similarity/metaphone.rb |
picky-2.6.0 | lib/picky/generators/similarity/metaphone.rb |