Sha256: 0876d54723a878a9809d25c21043e03448b822ea07792958bca6c49451017720

Contents?: true

Size: 433 Bytes

Versions: 5

Compression:

Stored size: 433 Bytes

Contents

module Lunar
  # @private Internally used by {Lunar::Words} to filter out
  # common words like an, the, etc.
  module Stopwords
    def include?(word)
      stopwords.include?(word)
    end

  private
    def stopwords
      %w(an and are as at be but by for if in into is it no not of on or s 
         such t that the their then there these they this to was will with)
    end

    module_function :stopwords, :include?
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lunar-0.5.5 lib/lunar/stopwords.rb
lunar-0.5.4 lib/lunar/stopwords.rb
lunar-0.5.3 lib/lunar/stopwords.rb
lunar-0.5.2 lib/lunar/stopwords.rb
lunar-0.5.1 lib/lunar/stopwords.rb