Sha256: b789521f78218af1ba27968f491d9965b26f0b142346c107c28761fd2abaa888

Contents?: true

Size: 526 Bytes

Versions: 21

Compression:

Stored size: 526 Bytes

Contents

module Picky

  # encoding: utf-8
  #
  module Generators

    module Similarity

      # It's actually a combination of double metaphone
      # and Levenshtein.
      #
      # It uses the double metaphone to get similar words
      # and ranks them using the levenshtein.
      #
      class DoubleMetaphone < Phonetic

        # Encodes the given string/symbol.
        #
        # Returns a symbol.
        #
        def encoded str_or_sym
          str_or_sym.double_metaphone
        end

      end

    end

  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
picky-4.0.0pre6 lib/picky/generators/similarity/double_metaphone.rb
picky-4.0.0pre5 lib/picky/generators/similarity/double_metaphone.rb
picky-4.0.0pre3 lib/picky/generators/similarity/double_metaphone.rb
picky-4.0.0pre2 lib/picky/generators/similarity/double_metaphone.rb
picky-4.0.0pre1 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.16 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.15 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.14 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.13 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.12 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.11 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.10 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.9 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.8 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.7 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.6 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.4 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.3 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.2 lib/picky/generators/similarity/double_metaphone.rb
picky-3.6.1 lib/picky/generators/similarity/double_metaphone.rb