Exploratory Community

How can I add new words to the list of stop words for is_stopword()?

#1

is_stopword function can be used with filter command to filter out stopwords.
To add new words to the list of stopwords it has, there is “include” argument.

So, with a custom filter step, you can do something like this to filter with new stopwords in addition to the list of default stop words is_stopword function already has.

!is_stopword(words, include=c("foo","bar"))