DocSpeller {Aspell} | R Documentation |
These functions a function that returns a CallbackResult
for spell-checking words in a document and managing the
mis-spellings, etc. This is used by
spellDoc
.
The particular callback function that it returns
is an interactive
DocSpeller(correct = TRUE, class = "CallbackResult", elClass = "SpellingReplacement") collectWords(class = "CallbackResult")
correct |
a logical value. If TRUE this causes the
callback function to tell the speller about the word the user
selects as the alternative for the mis-spelled word.
In this way, the speller can learn for future occurrences of this word.
If this is not desirable, use FALSE and there is no feedback
to the checker.
|
class |
the name of the class of the returned object. This allows the caller to provide the named of a derived class and still use this constructor function. |
elClass |
the name of the class to use when creating objects for describing the mis-spelled word, its location and the choice of alternative. |
An object of class class
which, by default, is CallbackResult-class
.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://aspell.sourceforge.net http://www.omegahat.org/Aspell
aspell
spellDoc
CallbackResult-class