Sha256: f529370c0507bccb4197b9ed1365f1f32efce1a1a386453966100390abd24ce8

Contents?: true

Size: 525 Bytes

Versions: 107

Compression:

Stored size: 525 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 encode str_or_sym
          str_or_sym.double_metaphone
        end

      end

    end

  end

end

Version data entries

107 entries across 107 versions & 1 rubygems

Version Path
picky-4.5.5 lib/picky/generators/similarity/double_metaphone.rb
picky-4.5.4 lib/picky/generators/similarity/double_metaphone.rb
picky-4.5.3 lib/picky/generators/similarity/double_metaphone.rb
picky-4.5.2 lib/picky/generators/similarity/double_metaphone.rb
picky-4.5.1 lib/picky/generators/similarity/double_metaphone.rb
picky-4.5.0 lib/picky/generators/similarity/double_metaphone.rb
picky-4.4.2 lib/picky/generators/similarity/double_metaphone.rb
picky-4.4.1 lib/picky/generators/similarity/double_metaphone.rb
picky-4.4.0 lib/picky/generators/similarity/double_metaphone.rb
picky-4.3.2 lib/picky/generators/similarity/double_metaphone.rb
picky-4.3.1 lib/picky/generators/similarity/double_metaphone.rb
picky-4.3.0 lib/picky/generators/similarity/double_metaphone.rb
picky-4.2.4 lib/picky/generators/similarity/double_metaphone.rb
picky-4.2.3 lib/picky/generators/similarity/double_metaphone.rb
picky-4.2.2 lib/picky/generators/similarity/double_metaphone.rb
picky-4.2.1 lib/picky/generators/similarity/double_metaphone.rb
picky-4.2.0 lib/picky/generators/similarity/double_metaphone.rb
picky-4.1.0 lib/picky/generators/similarity/double_metaphone.rb
picky-4.0.9 lib/picky/generators/similarity/double_metaphone.rb
picky-4.0.8 lib/picky/generators/similarity/double_metaphone.rb