Learn R Programming

textTools (version 0.1.0)

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

Description

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

Usage

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

Run this code
# NOT RUN {
str_stopwords_by_part_of_speech('adjective')
# }

Run the code above in your browser using DataLab