Learn R Programming

MadanText (version 0.1.0)

fun.one.sums: General Persian Suffix Modification

Description

This function modifies Persian words based on a specified suffix type.

Usage

fun.one.sums(v, type)

Value

Returns a character vector where each element corresponds to a word from the input vector `v` with the specified suffix type modified. This results in a transformed vector where each word has been modified to remove or alter the specified suffix. The length of the returned vector matches the length of the input vector, and each word is modified independently based on the specified suffix type.

Arguments

v

A character vector of Persian words.

type

A character string representing the suffix type.

Examples

Run this code
if (FALSE) {
  words <- c("Persian text here")
  modified_words <- fun.one.sums(words, "Persian text here")
}

Run the code above in your browser using DataLab