Class: StyleScanner::SentenceScans::PassiveTense

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

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

heuristic: A “BE” verb follwed by a verb other than a gerund



6
7
8
9
10
# File 'lib/style_scanner/sentence_scans/passive_tense.rb', line 6

def scan
  passives.each do |passive|
    create_problem(word_in_context(passive))
  end
end