spell.replacer: Probabilistic Spelling Correction in a Character Vector

David West Brown · 2025

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) . The word frequency data is derived from Davies (2008-) "The Corpus of Contemporary American English (COCA)" .

Read the paper · More papers on PaperTik