quanteda / stopwords

Multilingual Stopword Lists in R
http://stopwords.quanteda.io
Other
113 stars 9 forks source link

Add use_stopwords() function #18

Closed kbenoit closed 4 years ago

kbenoit commented 4 years ago

Adds as use_stopwords() function to make it easy to add a re-export of stopwords() to any package. This is how quanteda provides stopwords, for instance, and how tm could as well (if only it used roxygen...)

Give it a try on any package - you can always revert the changes!

This should close https://github.com/quanteda/quanteda/issues/1850, which I didn't understand anyway.

kbenoit commented 4 years ago

I'm running some additional CRAN checks (win-builder, rhub) to make sure that this https://github.com/quanteda/stopwords/blob/06fbce2a1f7a171f2e47db891e16271f84f004fb/R/use_stopwords.R#L1-L6 is kosher, but if so, I'll merge and resubmit.

Do you have any custom stopword lists you wanted to add first? You mentioned some in Innsbruck.