Module: Lunar::Stopwords

Defined in:
lib/lunar/stopwords.rb

Overview

common words like an, the, etc.

Class Method Summary collapse

Class Method Details

.include?(word) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/lunar/stopwords.rb', line 5

def include?(word)
  stopwords.include?(word)
end

.stopwordsObject



10
11
12
13
# File 'lib/lunar/stopwords.rb', line 10

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