This function allows you to code a variable of unprocessed text responses into the different dictionaries and sentiments

Code_words(
  data,
  text = "word",
  more2na = T,
  parallelize = T,
  print = T,
  debug = F
)

Arguments

data

dataframe including the text to code

text

string name of a variable (vector) of text to code into the dictionaries

more2na

if text has more than 2 words, transform to na

Value

Original dataframe with additional columns for codings