Linguist Martin Schweinberger has used base R to perform a sociolinguistic analysis of swear word use in Irish English. The data analyzed is from the Irish component of the International Corpus of English. I'm particularly tickled by the fact that the script contains a set of regular expressions that define swear words. For instance search.pattern2 <- c (" [A|a]rse [s|d]{0 ,1} ") Turns out … [Read more...]