Introducing “Actually the singular is …”, a Mastobot

Good news for pedantic academics who like to correct others’ use of Latin-derived plurals!

I have automated that task for you with a bot on Mastodon:

Actually, the singular is …

I wrote it using and BeautifulSoup and it’s a very simple little bot. (Only 42 lines of code!)

It takes all the posts currently visible to the bot on its Public Timeline, strips out the HTML formatting, makes a list of all the words that are alphabetic and end in -i or -a (so “plaza” would make it in, but “@plaza” wouldn’t) and then posts (for example): “plaza?” actually the singular is: plazum (if it had ended with an -i, it would have changed the ending to -us).

Then it adds the original word to a list of words not to post again and a cron job makes it repeat every 10 mins.

I had this idea a while back, but I got stuck on the idea that I’d need a pre-made dictionary of words that end in -i or -a. Then it occurred to me that I could just populate that list on the fly from the bot’s perspective on the Timeline. That also has the added benefit that there’s the possibility that the words it chooses may be topical, and not just random.


Published by

The Grey Literature

This is the personal blog of Benjamin Gregory Carlisle PhD. Queer; Academic; Queer academic. "I'm the research fairy, here to make your academic problems disappear!"

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.