Prints out location for each word in a character vector

find_words(words, text, found_words)

Arguments

words

charcter vector of words

text

character vector of length 1 that is being searched

found_words

dataframe of words found with three columns: n_word -- integer order of the word found, original_word -- the word searched for and found with original case retained. starts_at -- characer position of the first letter of the found word within the text provided.