Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Commit

Permalink
Remove grouped not
Browse files Browse the repository at this point in the history
It is an extra negative to think about. Change it for more standard
syntax
  • Loading branch information
rurounijones committed Jun 13, 2014
1 parent 0cd3a24 commit cd24e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ankusa/hasher.rb
Expand Up @@ -19,7 +19,7 @@ def self.atomize(text)

# word should be only alphanum chars at this point
def self.valid_word?(word)
not (Ankusa::STOPWORDS.include?(word) || word.length < 3 || self.numeric_word?(word))
!Ankusa::STOPWORDS.include?(word) && word.length > 2 && !self.numeric_word?(word)
end

def add_text(text)
Expand Down

0 comments on commit cd24e5c

Please sign in to comment.