Learn R Programming

sumup (version 1.0.1)

correct_text: Correct Text

Description

Applies typo corrections to an input text using a given correction table.

Usage

correct_text(input_text, corrections)

Value

A character vector with corrected text.

Arguments

input_text

A character vector containing the text to be corrected.

corrections

A data frame containing two columns: typoEdit (pattern) and replacement (correction).