SpellingReplacement-class {Aspell}R Documentation

Representation of a corrected word for a document.

Description

This class is used to represent a potential change or subsitution in a document for a spelling error. It includes the original mis-spelled word, the correct word that should replace it and the location within the document of the original word. The location is the offset and the length, giving the precise sequence of bytes that must be removed and substituted.

Objects from the Class

Objects can be created by calls of the form new("SpellingReplacement", ...).

Slots

correction:
Object of class "character". The correct word to replace the mis-spelled one.
word:
Object of class "character". The original, mis-spelled word.
location:
Object of class AspellToken-class. The location for the substitution.

Methods

No methods defined with class "SpellingReplacement" in the signature.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://aspell.sourceforge.net http://www.omegahat.org

See Also

spellDoc DocSpeller

Examples



[Package Aspell version 0.2-0 Index]