• Newsfeed
  • Technology

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

2 minute read

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:

“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.

More Must-Reads From TIME

Write to Raisa Bruner at raisa.bruner@time.com