str_stopwords_by_part_of_speech: Create a vector of English words associated with particular...

Description Usage Arguments Value Examples

View source: R/text.table.R

Description

Create a vector of English words associated with particular parts of speech.

Usage

1
2
3
4
5
6
str_stopwords_by_part_of_speech(
  parts = c("adjective", "adverb", "conjunction", "definite article", "interjection",
    "noun", "noun phrase", "plural", "preposition", "pronoun", "verb (intransitive)",
    "verb (transitive)", "verb (usu participle)"),
  include_multi_word = FALSE
)

Arguments

parts

A vector, at least one of the following: 'adjective', 'adverb', 'conjunction', 'definite article', 'interjection', 'noun', 'noun phrase', 'plural', 'preposition', 'pronoun', 'verb (intransitive)', 'verb (transitive)', 'verb (usu participle)'

include_multi_word

TRUE/FALSE, if TRUE, includes records from the pos data.table where multi_word == TRUE, otherwise excludes these records.

Value

A vector of words matching the part of speech shown in the data.table pos.

Examples

1

textTools documentation built on Feb. 5, 2021, 5:07 p.m.