This dynamically determines the names of the languages
for which stemming is supported by this package.
This is controlled when the package is created (not installed)
by downloading the stemming algorithms for the different
languages.
This language support requires more support for Unicode
and more complex text than simple strings.
Usage
getStemLanguages()
Details
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.
wordSteminst/scripts/download in the source of the
Rstem package.
Examples
getStemLanguages()
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(RTextTools)
Loading required package: SparseM
Attaching package: 'SparseM'
The following object is masked from 'package:base':
backsolve
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/RTextTools/getStemLanguages.Rd_%03d_medium.png", width=480, height=480)
> ### Name: getStemLanguages
> ### Title: Query the languages supported in this package
> ### Aliases: getStemLanguages
> ### Keywords: IO utilities
>
> ### ** Examples
>
> getStemLanguages()
[1] "french" "english" "spanish" "portuguese" "german"
[6] "dutch" "swedish" "norwegian" "danish" "russian"
[11] "finnish" "italian"
>
>
>
>
>
> dev.off()
null device
1
>