èƵ

Predictive texts: a bot that dreams up children’s stories

Stymied by writer's block? Let this neural net brainstorm the beginnings of your next masterpiece

Make cartoon

“Once upon a time, I dreamed of being a children’s author,” says Selma Storey, “but inspiration is like fairy dust. I’ve tried everything, even random word generators, but I can’t conjure a children’s title from ‘leverage’ and ‘asbestos’. Help!”

It’s debatable whether machines can be truly creative. But they’re certainly smart. Artificial neural nets are thinking machines modelled on the connections in our own brains. They can spot patterns within data, allowing them to predict earthquakes, steer self-driving cars and beat everyone at the board game Go.

There are lots of open source versions you can experiment with. You just need a few lines of code and some training data. To start, I gave my neural net a list of 200 children’s book titles, scraped from .

It got to grips with form, even if the results lacked flair. “The Stories and the Things” doesn’t scream bestseller to me, and “The Magic Magic Mole Mole” is a little repetitive.

Time to up the data set. This time I assembled 1180 titles. After a single pass, my neural net showed improvement, even if “The Story of the Story” was a bit recursive. After a few more passes, it was finding its own dry sense of humour, offering up “Oliver and the Neverend” and “The Fantastic Profity Monster” – something all publishers are no doubt looking for. Following an afternoon deep in thought, the neural net came up with “The Adventures of Dunno and His Friends”, “Hans the Mole Brother” and “Bad Tomato Wench”. Not bad.

In a final push, I spent a day compiling a huge data set of 3600 titles. Feeding this literary smorgasbord to the neural net, things turned sinister. It dreamed up titles like “The Bear Made Me”, “I Want to See Christmas” and “Bary Rots in Homewold”. Still, “Avocado Baby” is sure to appeal to millennial parents.

In the end, though, a number of passes through the long list got my neural net generating just what I had hoped for: titles like “The Mysterious Church Stairs” and “The Adventures of the Wild Dinosaurs”. With infinite writing prompts, how could you ever be lost for words again? Now, does anyone have the number for Random House?

  • For more Makes visit
Topics: children