stem_strings {textstem} | R Documentation |
Stem a vector of strings.
stem_strings(x, language = "porter", ...)
x |
A vector of strings. |
language |
The name of a recognized language (see
|
... |
Other arguments passed to |
Returns a vector of stemmed strings.
The stemmer requires splitting the string apart into tokens. After the stemming occurs the strings are pasted back together. The strings are not guaranteed to retain exact spacing of the original.
x <- c(
'the dirtier dog has eaten the pies',
'that shameful pooch is tricky and sneaky',
"He opened and then reopened the food bag",
'There are skies of blue and red roses too!',
NA,
"The doggies, well they aren't joyfully running.",
"The daddies are coming over...",
"This is 34.546 above"
)
stem_strings(x)