Probabilistic Spelling Correction in a Character Vector
Overview
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/.
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 4 (1 internal)includes a package overview page
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 0%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing spell.replacer adds 36 packages (20 with compiled code, 38 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, hunspell 3.1 MB.
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- 1.0.1Latest2025-09-03 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-09-03
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 407 KB / 1 file
- Download size
- 423 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("spell.replacer")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.