getStemLanguages: Query the list of supported languages

Description Usage Details Value Author(s) References See Also Examples

View source: R/stem.R

Description

This dynamically determines the names of the languages for which stemming is currently supported by this package.

Usage

1

Details

The language names in lower case are returned, though please note that two- and three- letter ISO-639 codes are also accepted by wordStem (see references for the list of codes).

This queries the C code for the list of languages that were compiled when the package was installed which in turn is determined by the code that was included in the distributed package itself.

Value

A character vector giving the names of the languages.

Author(s)

Milan Bouchet-Valat

References

http://snowball.tartarus.org/

http://www.loc.gov/standards/iso639-2/php/code_list.php for a list of ISO-639 language codes.

See Also

wordStem

Examples

1

Example output

 [1] "danish"     "dutch"      "english"    "finnish"    "french"    
 [6] "german"     "hungarian"  "italian"    "norwegian"  "porter"    
[11] "portuguese" "romanian"   "russian"    "spanish"    "swedish"   
[16] "turkish"   

SnowballC documentation built on April 14, 2020, 7:57 p.m.