FixBrokenPlurals: Stems Arabic broken plurals

Description Usage Arguments Value Author(s) Examples

Description

Stems Arabic broken plurals and returns singulars.

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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)

Example output

[1] "مصداق وزیر حد"

PersianStemmer documentation built on June 28, 2019, 5:03 p.m.