Learn R Programming

MadanText (version 0.1.0)

fungi: Persian Suffix Modification

Description

This function modifies Persian words ending with 'Persian text here' suffix.

Usage

fungi(v)

Value

Returns a character vector where each element corresponds to a word from the input vector `v` with the specified suffix modified. This results in a transformed vector where each word ending with the specified suffix is altered. The length of the returned vector matches the length of the input vector, and each word is modified independently based on the presence of the specified suffix.

Arguments

v

A character vector of Persian words.

Examples

Run this code
if (FALSE) {
  words <- c("Persian text here")
  modified_words <- fungi(words)
}

Run the code above in your browser using DataLab