These methods enable you to correct errors that occurred during automatic processing, e.g., wrong hyphenation.
# S4 method for kRp.corpus
correct.hyph(obj, word = NULL, hyphen = NULL, cache = TRUE)
An object of class kRp.corpus
.
A character string,
the (possibly incorrectly hyphenated) word
entry to be replaced with hyphen
.
A character string,
the new manually hyphenated version of word
. Mustn't contain
anything other than characters of word
plus the hyphenation mark "-"
.
Logical, if TRUE
,
the given hyphenation will be added to the sessions' hyphenation cache.
Existing entries for the same word will be replaced.
An object of the same class as obj
.
For details on what these methods do on a per text object basis, please refer to the
documentation of correct.hyph
in the sylly
package.