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.22.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.21.2 lib/picky/api/tokenizer/stemmer.rb
picky-4.21.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.21.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.20.2 lib/picky/api/tokenizer/stemmer.rb
picky-4.20.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.20.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.19.7 lib/picky/api/tokenizer/stemmer.rb
picky-4.19.6 lib/picky/api/tokenizer/stemmer.rb
picky-4.19.5 lib/picky/api/tokenizer/stemmer.rb
picky-4.19.4 lib/picky/api/tokenizer/stemmer.rb
picky-4.19.3 lib/picky/api/tokenizer/stemmer.rb
picky-4.19.2 lib/picky/api/tokenizer/stemmer.rb
picky-4.19.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.19.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.18.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.17.1 lib/picky/api/tokenizer/stemmer.rb
picky-4.17.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.16.0 lib/picky/api/tokenizer/stemmer.rb
picky-4.15.1 lib/picky/api/tokenizer/stemmer.rb