Remove stopwords, or the words such as "all", "almost", "alone", (and many more).

strip_non_letters(text)

# S3 method for corpus
strip_non_letters(text)

# S3 method for documents
strip_non_letters(text)

# S3 method for document
strip_non_letters(text)

Arguments

text

An object inheriting of class document or corpus.

Examples

# NOT RUN {
init_textanalysis()

# build document
# must be lowercase
doc <- string_document("This is 1 document.")

# replaces in place!
strip_non_letters(doc)
get_text(doc)
# }