Sha256: 29a3202e0ac2d0e817715955d73b3152a4cee6b41429a4daed465057a0d50374

Contents?: true

Size: 376 Bytes

Versions: 67

Compression:

Stored size: 376 Bytes

Contents

module Picky
  module API
    module Tokenizer

      module Stemmer

        def extract_stemmer thing
          if thing.respond_to? :stem
            thing
          else
            raise ArgumentError.new <<-ERROR
The stems_with option needs a stemmer,
which responds to #stem(text) and returns stemmed_text."
ERROR
          end
        end

      end

    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
picky-4.11.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.10.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.9.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.8.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.8.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.7.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.6.6 lib/picky/api/tokenizer/stemmer.rb