Learn R Programming

SemNetCleaner (version 1.1.5)

combine.responses: Combine Words Wrapper

Description

A wrapper function to combine words that are found in dictionary (e.g., "star" "fish" --> "starfish")

Usage

combine.responses(vec, dictionary)

Arguments

vec

Vector. A vector with words to potentially be combined

dictionary

A dictionary to look for (combined) word in. See SemNetDictionaries

Value

A vector with responses combined based on dictionary entries

Examples

Run this code
# NOT RUN {
# Convert "star fish" to "starfish"
combine.responses("star fish", SemNetDictionaries::animals.dictionary)

# }

Run the code above in your browser using DataLab