str_stopwords_by_part_of_speech {textTools} | R Documentation |
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
str_stopwords_by_part_of_speech('adjective')
[Package textTools version 0.1.0 Index]