Class: StyleScanner::SentenceScans::Spelling

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

Constant Summary collapse

DICTIONARY =

notice the way you don’t give hunspell any specific file so much as the name both the aff and dic file use

File.expand_path("../../../dictionaries/en_US", __FILE__)

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



8
9
10
11
12
# File 'lib/style_scanner/sentence_scans/spelling.rb', line 8

def scan
  mispellings.each do |mispelled_word|
    create_problem(mispelled_word)
  end
end