Sha256: 00f4fc882f5d1b2ea4310b02042c8463b3750ffaeb4262476fdbf73d780b6405
Contents?: true
Size: 463 Bytes
Versions: 2
Compression:
Stored size: 463 Bytes
Contents
# encoding: utf-8 # module Generators module Similarity # It's actually a combination of soundex # and Levenshtein. # # It uses the soundex to get similar words # and ranks them using the levenshtein. # class Soundex < Phonetic # Encodes the given symbol. # # Returns a symbol. # def encoded sym code = Text::Soundex.soundex 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/soundex.rb |
picky-2.6.0 | lib/picky/generators/similarity/soundex.rb |