Crandore Hub

spell.replacer

Probabilistic Spelling Correction in a Character Vector

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/>.

Versions across snapshots

VersionRepositoryFileSize
1.0.1 rolling linux/jammy R-4.5 spell.replacer_1.0.1.tar.gz 567.6 KiB
1.0.1 rolling linux/noble R-4.5 spell.replacer_1.0.1.tar.gz 567.6 KiB
1.0.1 rolling source/ R- spell.replacer_1.0.1.tar.gz 423.1 KiB
1.0.1 latest linux/jammy R-4.5 spell.replacer_1.0.1.tar.gz 567.6 KiB
1.0.1 latest linux/noble R-4.5 spell.replacer_1.0.1.tar.gz 567.6 KiB
1.0.1 latest source/ R- spell.replacer_1.0.1.tar.gz 423.1 KiB
1.0.1 2026-04-26 source/ R- spell.replacer_1.0.1.tar.gz 423.1 KiB
1.0.1 2026-04-23 source/ R- spell.replacer_1.0.1.tar.gz 423.1 KiB
1.0.1 2026-04-09 windows/windows R-4.5 spell.replacer_1.0.1.zip 572.8 KiB

Dependencies (latest)

Imports

Suggests