Automatically replaces "misspelled" words in a character vector based on their string distance from a list of words sorted by their frequency in a corpus. The default word list provided in the package comes from the Corpus of Contemporary American English. Uses the Jaro-Winkler distance metric for string similarity as implemented in van der Loo (2014) <doi:10.32614/RJ-2014-011>. The word frequency data is derived from Davies (2008-) "The Corpus of Contemporary American English (COCA)" <https://www.english-corpora.org/coca/>.
Version: | 1.0.1 |
Depends: | R (≥ 2.10) |
Imports: | hunspell, stringr, stringdist, textclean |
Suggests: | rmarkdown, knitr, testthat (≥ 3.0.0) |
Published: | 2025-09-03 |
DOI: | 10.32614/CRAN.package.spell.replacer |
Author: | David Brown |
Maintainer: | David Brown <dwb2 at andrew.cmu.edu> |
License: | MIT + file LICENSE |
NeedsCompilation: | no |
CRAN checks: | spell.replacer results |
Reference manual: | spell.replacer.html , spell.replacer.pdf |
Vignettes: |
Getting Started with spell.replacer (source, R code) |
Package source: | spell.replacer_1.0.1.tar.gz |
Windows binaries: | r-devel: spell.replacer_1.0.1.zip, r-release: not available, r-oldrel: spell.replacer_1.0.1.zip |
macOS binaries: | r-release (arm64): spell.replacer_1.0.1.tgz, r-oldrel (arm64): spell.replacer_1.0.1.tgz, r-release (x86_64): spell.replacer_1.0.1.tgz, r-oldrel (x86_64): spell.replacer_1.0.1.tgz |
Please use the canonical form https://CRAN.R-project.org/package=spell.replacer to link to this page.