Learn R Programming

spell.replacer (version 1.0.1)

coca_list: COCA Word List

Description

A character vector containing the 100,000 most frequent words from the Corpus of Contemporary American English (COCA), sorted by frequency from most to least frequent. This word list serves as the default reference for spelling correction in the spell_replace function.

Usage

coca_list

Arguments

Format

A character vector with 100,000 elements:

Each element is a word from COCA, with the first element being the most frequent word ("the") and subsequent elements decreasing in frequency.

Examples

Run this code
# View the first 10 most frequent words
head(coca_list, 10)

# Check if a word is in the list
"hello" %in% coca_list

# Find the rank of a specific word
which(coca_list == "hello")

Run the code above in your browser using DataLab