Remove specific words.

remove_words(text, words)

# S3 method for corpus
remove_words(text, words)

# S3 method for documents
remove_words(text, words)

# S3 method for document
remove_words(text, words)

Arguments

text

An object inheriting of class document or corpus.

words

Word to remove.

Examples

# NOT RUN {
init_textanalysis()

# build document
doc <- string_document("this woops is not woop correct")

# replaces in place!
errors <- c("woops", "woop")
remove_words(doc, words = errors)
get_text(doc)
# }