Learn R Programming

morestopwords (version 0.2.0)

stopwords: Collection of stopwords in multiple languages

Description

This function returns stop words contained in the StopwordsISO repository.

Usage

stopwords(lang = "en")

Value

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

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.).

Examples

Run this code
# They all return the correct list of stop words!

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

Run the code above in your browser using DataLab