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.31.3 lib/picky/api/tokenizer/stemmer.rb
picky-4.31.2 lib/picky/api/tokenizer/stemmer.rb
picky-4.31.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.31.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.30.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.29.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.28.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.27.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.27.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.26.2 lib/picky/api/tokenizer/stemmer.rb
picky-4.26.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.26.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.25.3 lib/picky/api/tokenizer/stemmer.rb
picky-4.25.2 lib/picky/api/tokenizer/stemmer.rb
picky-4.25.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.25.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.24.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.23.2 lib/picky/api/tokenizer/stemmer.rb
picky-4.23.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.23.0 lib/picky/api/tokenizer/stemmer.rb