TIME Technology

Here’s What Happens If You Let a Whimsical Robot Write the Next Harry Potter Chapter

"Magic: it was something that Harry Potter thought was very good."

Watch out, writers: artificial intelligence is coming for our jobs. Just take a look at this chapter of Harry Potter fan fiction.

Harry Potter and the Portrait of What Looked Like a Large Pile of Ash” is a three-page chapter of literature produced by an algorithm. Trained by Botnik Studios on the meat of Rowling’s expansive magical universe, it’s an author-assisted predictive text document; creator Jamie Brew and other writers helped nudge the algorithm in the right direction. The result is just as weird — and, uncomfortably for some of us, readable — as you might expect, filled with the characters and whimsical vocabulary notable to Rowling. (Logical plot, however, is not its greatest strength.)

Here’s the first paragraph:

[time-brightcove not-tgx=”true”]

“The castle grounds snarled with a wave of magically magnified wind. The sky outside was a great black ceiling, which was full of blood. The only sounds drifting from Hagrid’s hut were the disdainful shrieks of his own furniture. Magic: it was something that Harry Potter thought was very good.”

Of course, it does drift in unusual directions at times, sounding a bit like a randomized MadLib with Harry Potter fever. For instance: “Ron’s Ron shirt was just as bad as Ron himself,” it continues. “‘If you two can’t clump happily, I’m going to get aggressive,’ confessed the reasonable Hermione.” (Review: some hits, some misses, and a shift in tone towards the oddball reality of magical realism.)

This isn’t the first time that Brew has crafted similar works of fiction. In fact, the Botnik Labs predictive text generator is available to all as open-source code on Github. Use at your own risk.

Tap to read full story

Your browser is out of date. Please update your browser at http://update.microsoft.com


YOU BROKE TIME.COM!

Dear TIME Reader,

As a regular visitor to TIME.com, we are sure you enjoy all the great journalism created by our editors and reporters. Great journalism has great value, and it costs money to make it. One of the main ways we cover our costs is through advertising.

The use of software that blocks ads limits our ability to provide you with the journalism you enjoy. Consider turning your Ad Blocker off so that we can continue to provide the world class journalism you have become accustomed to.

The TIME Team