Learn R Programming

MadanText (version 0.1.0)

fun.all.sums: Apply Suffix Modifications to Persian Words

Description

This function iteratively applies a series of suffix modifications to a vector of Persian words.

Usage

fun.all.sums(v, TYPE)

Value

Returns a character vector where each element corresponds to a word from the input vector `v` with all specified suffix modifications applied. This results in a transformed vector where each word has been modified according to the series of suffix types provided in `TYPE`. The length of the returned vector matches the length of the input vector.

Arguments

v

A character vector of Persian words.

TYPE

A vector of suffix types for modification.

Examples

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

Run the code above in your browser using DataLab