The functions retrieves stopwords from the stopwords package using the ISO-639-1 encoding. For miscellaneous languages data_stopwords_misc are used.

get_stopwords(code)

Arguments

code

A string with the language code of the stopwords.

Value

Character vector with the stopwords or NULL if the language code is unknown.

Examples

get_stopwords("en")[1:10]
#> [1] "'ll" "'tis" "'twas" "'ve" "10" "39" #> [7] "a" "a's" "able" "ableabout"