gwcoffey.com

I’m a big fan of the Moby Dick at Sea Mastodon bot. And I’m a big fan of the 20th century’s first and biggest bad girl, Mary MacLane. And I’m a computer programmer. So I suppose this was inevitable…

I give you, the Mary MacLane Bot on Mastodon, a bot that posts random curated passages from Mary MacLane’s I Await the Devil’s Coming every four hours.

Who is Mary MacLane

An aging black and white photograph of a young Mary MacLane. She wears 19th century clothing including a large hat, and long full dress. Her arms are behind her back, body erect, head slightly back. She has a defiant look on her face.

Mary MacLane’s writing is hard to classify, but I’ll try: self-absorbed, honest, irreverent, hyper-dramatic, funny, sad, beautiful, and personal. She wrote her debut memoir, I Await the Devil’s Coming, as a sort of diary over a period of three months in 1901, at just 19 years old. It begins:

I of womankind and of nineteen years, will now begin to set down as full and frank a Portrayal as I am able of myself, Mary MacLane, for whom the world contains not a parallel.

It then it just goes.

She came to me late in life. I’m not sure how I discovered her work, but the moment I did, maybe five years ago, I was hooked. (My kids will tell you this is unsurprising because I have something of a fascination with so-called “badly behaved women” and Mary certainly fills that niche.)

I think the thing I love most about her writing is that it pulls no punches. In some sense she’s the quintessential teenager, for whom everything is somehow simultaneously overwhelming and entirely possible.

I love her pleading prose. I love her dry humor. I love her strangeness in all its forms. Some people are turned off by her ego. Some by her irreverence. Some by her dramatics. (And some, of course because she’s bisexual.) But I love her. I love her not in spite of these things but because of them.

I’ve posted a sample chapter here if you’d like to get a sense of her prose style, humor, and dramatics.

Mary put her full authentic self into her writing. As she says in her entry on , I have given my heart into the keeping of this. And now I give it to you.


Technical Details

The bot is implemented in TypeScript. The source code is available on GitHub, and the bot is available as an NPM module called @gwcoffey/litbot. This is a somewhat generic module for selecting at random from a dataset of text passages and posting it to Mastodon.

I curated the data for MacLane Bot myself using the plain text version of I Await the Devil’s Coming from Project Gutenberg. I am, as always, grateful for the Project Gutenberg volunteers for the valuable work they do.

MacLane Bot itself is executed periodically as a Netlify scheduled function. The code for the function and the raw passage data is in the GitHub repo for this website but I’m not going to link to it here—it is so much more fun to follow the bot and get little jolts of joy throughout the day.

The MacLane Bot Mastodon account is graciously hosted free of charge on the botsin.space instance.