Class: StyleScanner::SentenceScans::UselessWord

Inherits:
Base
  • Object
show all
Defined in:
lib/style_scanner/sentence_scans/useless_word.rb

Constant Summary collapse

USELESS_WORDS =
["extremely", "exceedingly", "quite",
"remarkably", "surprisingly", "interestingly", "clearly",
"very", "pretty" "fairly", "really"]

Instance Attribute Summary

Attributes inherited from Base

#sentence

Instance Method Summary collapse

Methods inherited from Base

#initialize, load_file, scan

Constructor Details

This class inherits a constructor from StyleScanner::SentenceScans::Base

Instance Method Details

#scanObject



9
10
11
12
13
# File 'lib/style_scanner/sentence_scans/useless_word.rb', line 9

def scan
  USELESS_WORDS.each do |useless_word|
    create_problem(useless_word) if sentence.contains?(useless_word) 
  end
end