Skip to main content
  1. Home
  2. Emerging Tech
  3. News

A.I. reads the Harry Potter series, then writes some absurd fan fiction

Add as a preferred source on Google

Have you ever tried using the predictive keyboard on your smartphone to generate completely nonsensical messages, based on the words it considers to have the highest probability of following each other? A mischievous member of Botnik Studios, an online artist collaboration, just used a similar technique to write part of a new Harry Potter novel — with hilarious effect.

The predictive text generator used to write the story was trained on the seven previous Potter books. From this, it analyzed frequent recurrent word pairings and sentences to come up with text that is a weird mix of algorithmic randomness and something that, frankly, still reads a bit like J.K. Rowling may have penned it.

Recommended Videos

Titled Harry Potter and the Portrait of What Looked Like a Large Pile of Ash, the story is every bit as weird as you might imagine. A Death Eater wears a shirt reading, “Hermione Has Forgotten How To Dance,” Harry falls down a spiral staircase for an entire summer, and Ron does a tap dance and then tries to eat Hermione’s family. None of it makes a lick of sense, but it’s a whole lot of fun — and genuinely creative in a way that mixes human smarts with artificial intelligence.

This isn’t the first time computer scientists have used artificial intelligence to try and generate new Harry Potter stories. Last year, we reported on one attempt to generate new Hogwarts-related stories using a long short-term memory recurrent neural network trained on the series’ first four books.

Even more significantly, when Rowling was outed as the author of the detective novel The Cuckoo’s Calling a few years ago — writing under the pen name Robert Galbraith — computer scientists cracked the mystery in a very similar way to Botnik’s story generator: by analyzing the text based on frequent word pairings and the like. In the aftermath, Rowling admitted that she was the author.

If you are interested in finding out a bit more about Harry Potter and the Portrait of What Looked Like a Large Pile of Ash and the predictive text program used to generate it, check out this page on GitHub, where it is freely available to inspect.

Luke Dormehl
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
Anthropic’s sensitive internal data was exposed, and AI helped make it happen
Even the company behind Claude isn't immune to AI-powered security threats, as researchers discovered some worrying vulnerabilities.
Claude Anthropic Featured

AI companies spend enormous amounts of time convincing us their technology is safe and secure. But what happens when those same companies become targets of increasingly sophisticated AI-powered attacks? Anthropic, the company behind Claude, is now facing that question. According to a Washington Post report, cybersecurity startup Cathedral discovered vulnerabilities that let its researchers access sensitive information in Anthropic's internal systems.

The researchers used AI agents to identify potential entry points in less than 12 hours. Interestingly, they didn't need to crack Claude itself. Instead, they exploited weaknesses in third-party business applications that Anthropic uses for everyday operations. Anthropic's security testing program disclosed the findings, which allows outside researchers to identify and report vulnerabilities.

Read more
A new startup wants to fix the military’s working-dog shortage with cloning and gene editing
Promising pitch, plenty of unanswered questions about the dogs.
a new startup wants to fix the militarys working dog shortage with cloning and gene editing warhound featured image

Military working dogs charge into places the rest of us would flee. So, I understand why anyone would want to breed tougher, healthier dogs for the job.

Warhound, a new startup from Colossal Biosciences co-founder Ben Lamm and Anduril co-founder Palmer Luckey, has stepped out of stealth with $200 million to clone and gene-edit working dogs for American troops, police departments, and emergency services (via TechCrunch).

Read more
AI can describe a picture, but it still struggles to understand blind users
A University of Maryland study finds that Be My AI often buries useful answers in lengthy descriptions, leaving blind users to work harder to get the information they need.
Blind Man using walking stick

AI can describe a picture, identify objects, and answer questions about what a camera sees. But when a blind user needs a quick answer, getting an entire spoken essay about the scene isn't exactly helpful. Researchers at the University of Maryland (UMD) have found that AI-powered visual assistance can leave blind users doing too much work to get the information they actually need.

The study, titled Say It My Way: Exploring Control in Conversational Visual Question Answering with Blind Users, examined how people interact with Be My AI, an AI-powered feature of the Be My Eyes app. The researchers found that users often received lengthy descriptions that didn't adequately address their immediate goals, forcing them to ask follow-up questions or find ways to steer the AI towards a more useful answer.

Read more