Currently, PrepText does run even if node_type is not specified, producing this warning:
Warning messages:
1: In if (node_type == "groups") { :
the condition has length > 1 and only the first element will be used
2: In if (node_type == "words") { :
the condition has length > 1 and only the first element will be used
It would be more useful for these cases to (1) either break the function and have an informative warning like "node_type needs to be specified" or (2) alternatively set a default.
Currently, PrepText does run even if
node_type
is not specified, producing this warning:It would be more useful for these cases to (1) either break the function and have an informative warning like "node_type needs to be specified" or (2) alternatively set a default.