get_search_terms.Rd
Get search terms in dictionary
get_search_terms(words, dictionary)
words | character a string with words |
---|---|
dictionary | character vector containing all words in corpus |
character vector with words that are in the dictionary
uses the breakdown function from LSAfun to get rid of special characters and convert to lowercase. The dictionary_words
variable contains 100 sample words.
search <- "foreward firetruck by the president" corpus <- dictionary_words get_search_terms(search,corpus)#> [1] "by" "the" "president"