Remove preprositions, or the words such as "across", "around", "before" (and many more).

strip_preprositions(text)

# S3 method for corpus
strip_preprositions(text)

# S3 method for documents
strip_preprositions(text)

# S3 method for document
strip_preprositions(text)

Arguments

text

An object inheriting of class document or corpus.

Examples

# NOT RUN {
init_textanalysis()

# build document
doc <- string_document("A preprosition is in the document.")

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