stopwords {morestopwords}R Documentation

Collection of stopwords in multiple languages

Description

This function returns stop words contained in the StopwordsISO repository.

Usage

stopwords(lang = "en")

Arguments

lang

Language for which to retrieve the stop word among those supported. This parameters supports:

  • three-letter ISO 639-2/3 codes (e.g., 'eng');

  • two-letter ISO639-1 codes ('en');

  • names based ISO 639-2 codes ('English' or 'english') and their unambiguous substrings ('engl', 'engli', etc.).

Value

A character vector containing the stop words from the selected language as listed in the StopwordISO repository.

Examples

# They all return the correct list of stop words!

stopwords('German')
stopwords('germ')
stopwords('de')
stopwords('deu')

[Package morestopwords version 0.2.0 Index]