Class: StyleScanner::SentenceScans::LatinAbbreviation

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

Constant Summary collapse

LATINS =
["ie", "etc", "cf", "et cetera", "ergo",
"c", "cf", "ibid", "dto", "et al", "et seq", "vs",
"re", "nb"]

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
14
15
# File 'lib/style_scanner/sentence_scans/latin_abbreviation.rb', line 9

def scan
  dot_placement_permutations(LATINS).each do |latin_abbreviation|
    if sentence.contains?(latin_abbreviation) 
      create_problem(latin_abbreviation)
    end
  end
end