get_search_terms: Get search terms in dictionary

Description Usage Arguments Details Value Examples

View source: R/get_search_terms.R

Description

Get search terms in dictionary

Usage

1
get_search_terms(words, dictionary)

Arguments

words

character a string with words

dictionary

character vector containing all words in corpus

Details

uses the breakdown function from LSAfun to get rid of special characters and convert to lowercase. The dictionary_words variable contains 100 sample words.

Value

character vector with words that are in the dictionary

Examples

1
2
3
search <- "foreward firetruck by the president"
corpus <- dictionary_words
get_search_terms(search,corpus)

CrumpLab/RsemanticLibrarian documentation built on Nov. 11, 2019, 1:04 p.m.