arabicStemR-package | R Documentation |
This package is a stemmer for texts in Arabic (Modern Standard). The stemmer is loosely based on the light 10 stemmer, but with a number of modifications.
Use the stemArabic
function.
Maintainer: Rich Nielsen <rnielsen@mit.edu>
stemArabic
## generate some text in Arabic x <- "\u628\u633\u645 \u0627\u0644\u0644\u0647 \u0627\u0644\u0631\u062D\u0645\u0646 \u0627\u0644\u0631\u062D\u064A\u0645" ## stem and transliterate stemArabic(x) ## stem while not stemming certain words stem(x, dontStemTheseWords = c("alr7mn")) ## stem and return the stemlist out <- stemArabic(x,returnStemList=TRUE) out$text out$stemlist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.