Numeric.
The distance tolerance set for automatic spell-correction purposes.
This function uses the function stringdist
to compute the Damerau-Levenshtein
(DL) distance, which is used to determine potential best guesses.
Unique words (i.e., n = 1) that are within the (distance) tolerance are
automatically output as best.guess responses, which are then passed through
word.check.wrapper. If there is more than one word
that is within or below the distance tolerance, then these will be provided as potential
options.
The recommended and default distance tolerance is tolerance = 1,
which only spell corrects a word if there is only one word with a DL distance of 1.