Artificial Intelligence

An algorithm wrote a new Harry Potter chapter

A fan reads the new "Harry Potter and the Deathly Hallows" by J.K. Rowling as he sits outside a bookstore in the western Indian city of Ahmedabad July 21, 2007. Harry Potter fans poured into book stores around the world on Saturday to get hold of the seventh and final volume in the series and discover the secret of the boy wizard's fate. REUTERS/Amit Dave (INDIA)

An AI has written a chapter of Harry Potter after using the previous books to train on predictive typing Image: REUTERS/Amit Dave (INDIA)

Briony Harris
Senior Writer, Formative Content
Our Impact
What's the World Economic Forum doing to accelerate action on Artificial Intelligence?
The Big Picture
Explore and monitor how Artificial Intelligence is affecting economies, industries and global issues
A hand holding a looking glass by a lake
Crowdsource Innovation
Get involved with our crowdsourced digital platform to deliver impact at scale
Stay up to date:

Artificial Intelligence

Nearly everyone is familiar with the concept of predictive texting or messaging, where a word is started and the computer completes it on the writer’s behalf. Most of the time, this is helpful and saves time. From time to time, it can go a little wrong, sometimes with unfortunate, embarassing or hilarious results.

Botnik takes the idea of predictive text up a gear, by predicting a chapter of a book. The AI bot’s latest venture was to write a new chapter in the Harry Potter series after keyboards were trained on all seven of the previous books.

The results are impressive – given that whole sentences and paragraphs were predicted rather than just the odd word or phrase. But, impressive as it may be, the results are definitely on the entertaining rather than the useful side.

Fans of both Harry Potter and the Botnik have been sharing their favourite sentences online, with the original tweet getting almost 45,000 retweets.

Many fans retweeted '“Death Eaters are on top of the castle!” Ron bleated, quivering. Ron was going to be spiders. He just was.'

Others were amused by '“I’m going to get aggressive” confessed the reasonable Hermione.'

While 'Harry looked around and then fell down the spiral staircase for the rest of the summer' also caused much mirth, perhaps because it so nearly made sense until that last word.

Harry Potter fans expressed their delight on social media Image: Twitter

Botnik describes itself as a community of writers, artists and developers building and using machine-learning tools to remix and transform language.

It is part of a group of start-ups working on what is known as augmented content creation and has won support from both Amazon’s Alexa Accelerator and Techstars.

Previous texts fed to the predictive keyboard include poetry, buzzfeed quizzes, quotes from Amazon boss Jeff Bezos and reviews of new technology.

Safety in creative jobs?

Writing is an unexpected candidate for a job that is vulnerable to an AI takeover, with creativity and soft skills amongst the things most difficult for robots to emulate.

AI bots are undeniably already replacing humans in some jobs, for example data input, self-service McDonald’s kiosks, warehousing, and self-service checkouts in shops.

Data from the Robotics Industries Association reveals that 14,583 robots worth $817m were sold to companies around the world during the first half of 2016 alone. And a study from the McKinsey Global Institute predicts that nearly half of all the work we do will be able to be automated by 2055, although factors such as politics and public opinion could push that date back by 20 years.

The World Economic Forum’s Future of Jobs report predicts that 5 million jobs will be lost by 2020 as AI, robotics, nanotechnology and other technology developments replace the need for human workers.

Fortunately for novelists, Botnik will have to perfect its writing skills further before they need to start worrying about their jobs.

Have you read?
Don't miss any update on this topic

Create a free account and access your personalized content collection with our latest publications and analyses.

Sign up for free

License and Republishing

World Economic Forum articles may be republished in accordance with the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License, and in accordance with our Terms of Use.

The views expressed in this article are those of the author alone and not the World Economic Forum.

Related topics:
Artificial IntelligenceMedia, Entertainment and SportArts and Culture
World Economic Forum logo
Global Agenda

The Agenda Weekly

A weekly update of the most important issues driving the global agenda

Subscribe today

You can unsubscribe at any time using the link in our emails. For more details, review our privacy policy.

How we can prepare for the future with foundational policy ideas for AI in education

TeachAI Steering Committee

April 16, 2024

About Us



Partners & Members

  • Join Us

Language Editions

Privacy Policy & Terms of Service

© 2024 World Economic Forum