Class: StyleScanner::SentenceScans::SpeakingInGeneralities

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

Constant Summary collapse

GENERAL_WORDS =
["many", "various", "mostly", "largely",
"huge", "a number", "significantly", "substantially",
"vast", "relatively", "completely"]

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/speaking_in_generalities.rb', line 9

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