Learn R Programming

TSTr (version 1.2)

SDcheck: Performs spell checking using symmetric delete spell correction

Description

Spell checking for symmetric delete approach. Automatically detects the distance with which the keeper was pre-created.

Usage

SDcheck(keeper, string, summarize = FALSE)

Arguments

keeper
the structure used in the pre-calculation step to store the dictionary symmetrical deletions.
string
the misspelled string to correct.
summarize
if TRUE returns a list that summarizes the different distances of the corrected words. Default is FALSE.

Value

A vector or a list with the corrected words.

Details

Generate terms with an edit distance

See Also

SDkeeper

Examples

Run this code
fruitTree <- SDkeeper(c("apple", "orange", "lemon"), 2)
SDcheck(fruitTree,"aple")
SDcheck(fruitTree,"aple", summarize = TRUE)

Run the code above in your browser using DataLab