FixBrokenPlurals {PersianStemmer} | R Documentation |
Stems Arabic broken plurals
Description
Stems Arabic broken plurals and returns singulars.
Usage
FixBrokenPlurals(texts)
Arguments
texts |
A string with Arabic broken plurals that should be stemmed. |
Value
FixBrokenPlurals
returns a string with Arabic broken plurals stemmed.
Author(s)
Safshekan, Nielsen
Examples
# Create string with Arabic broken plurals
x <- '\u0645\u0635\u0627\u062F\u06CC\u0642
\u0648\u0632\u0631\u0627
\u062D\u062F\u0648\u062F'
# Remove new line characters and fixe half-spaces from a string.
x <- RemNewlineHalfspace(x)
# Remove all characters that are not Latin, Persian or punctuation,
# and standardize Persian characters.
x <- RefineChars(x)
# Stem Arabic broken plurals
FixBrokenPlurals(x)
[Package PersianStemmer version 1.0 Index]