Learn R Programming

SemNetCleaner (version 1.1.5)

splitstr.check: Split String Check

Description

A wrapper function for spell-checking (ensures next word does not belong to the previous)

Usage

splitstr.check(string, split = " ", dictionary, remember = list())

Arguments

string

Character. A string of words (see examples)

split

Character. A character that should be used to "split" the words input into the string argument. Defaults to a space (" ")

dictionary

Dictionary to check. See SemNetDictionaries

remember

Character list. Checks if split string has already been checked (a wrapper argument for spell.check.dictionary). Defaults to an empty list

Value

Returns the string as is or with the selected responses merged

Examples

Run this code
# NOT RUN {
# Create long word vector
words <- "bombay opossum guinea pig horse cow"

if(interactive())
{splitstr.check(string = words, split = " ", dictionary = SemNetDictionaries::animals.dictionary)}

# }

Run the code above in your browser using DataLab