R/RemoveEnglish.R

RemoveEnglish <-
function(texts){
  texts <- gsub('[A-Z]|[a-z]','',texts)
  # removes extra spaces
  return(trim(gsub(" {2,}"," ", texts)))
}

Try the PersianStemmer package in your browser

Any scripts or data that you put into this service are public.

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