load("data/interjections_regex.rda")
edit_interjections <- function(text, replacement = ""){
x <- interjections_regex
text <- mgsub_regex(text, paste0('(?<![[:alnum:]\\-])', x, '(?![[:alnum:]\\-])'), replacement,
ignore.case = T, perl = T)
return(text)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.