languages: Returns ISO codes and names for all language or only those...

View source: R/stopwords.R

languagesR Documentation

Returns ISO codes and names for all language or only those available in this package

Description

See the relevant Wikipedia article for details on the language codes.

Usage

languages(available = TRUE)

Arguments

available

logical, whether to return only the languages supported in this package.

Details

Note that:

  • the ISO 639-1 code for mainland Chinese was changed to zh-cn.

  • A list of stop words in the variety of Chinese spoken in the island of Taiwan is accessible using the ISO 639-1 zh-tw or the name 'Chinese Taiwan'.

  • Ancient Greek has been assigned an artifact ISO 639-1 code (gr) because it had none. Its ISO 639-2 and 639-3 codes are both grc.

Value

A data frame with a row for each languages (only those supported if available is TRUE) and columns for the several ISO codes (639-2, 639-3, 639-1) and the name.

Examples

# Return all languages in the ISO 639-2/3 standard
languages()

morestopwords documentation built on July 10, 2023, 2 a.m.