Decision Mechanics

Insight. Applied.

  • Services
    • Decision analysis
    • Big data analysis
    • Software development
  • Articles
  • Blog
  • Privacy
  • Hire us

R analysis of frequency of swear words in Irish English by gender and age

July 13, 2018 By editor

profanity comparison charts by gender and age

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 that while young women swear less than young men—the latter seem to go through a period of more intense swearing—by the time people get beyond 34, there’s gender harmony in the use of profanity.

Print Friendly, PDF & Email

Share this:

  • Email
  • Twitter
  • LinkedIn
  • Facebook

Filed Under: Data analysis Tagged With: age, gender, profanity, text analysis

Search

Subscribe to blog via e-mail

Subscribe via RSS

Recent posts

  • Data Wrangler
  • The Trolley Problem
  • Counting votes using Excel
  • Accuracy vs precision
  • It’s not because we have insufficient data…

Copyright © 2025 · Decision Mechanics Limited · info@decisionmechanics.com