AspellToken-class {Aspell} | R Documentation |
This class is used to represent the location of a word in a document. It gives the offset from the beginning of the string that represents the document and the length of the substring. This is the form that libaspell identifies a mis-spelled word within a document as it iterates over the content and identifies mis-spelled words.
This is typically not created directly, but rather as part of the document speller callback function.
offset
:"integer"
. This gives
the index of the start of the word of interest. This is 1-based,
i.e. starts from position 1. This is in characters.length
:"integer"
.
This gives the number of characters in the word, so
the substring of interest is from offset
to offset + length
.
No methods defined with class "AspellToken" in the signature.
Duncan Temple Lang <duncan@wald.ucdavis.edu>