# Can computers write novels?

**URL:** <https://boards.straightdope.com/t/can-computers-write-novels/710826>\
**Category:** In My Humble Opinion\
**Created:** [January 25, 2015, 4:42am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826 "2015-01-25T04:42:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![flight](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@flight](https://boards.straightdope.com/u/flight)\
**Post date:** [January 25, 2015, 4:42am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/1 "2015-01-25T04:42:01Z")

</div>

In [this](http://boards.straightdope.com/sdmb/showthread.php?t=747256) thread, the note is casually dropped that computers can currently write novels. This seems like utter bullshit to me. Hell, I would be amazed if computers can currently write an original metaphor, let alone develop a whole plot, something which depends upon human motivations.

I recall reading a story of a group that convinced a television news program to report on a computer program they had developed that could write novels. I believe it was in the style of Agatha Christie. The whole point was that it was impossible, that science reporting was overly credulous and scientifically illiterate. I doubt we have come far enough that any of these points are no longer true.

I could not find that story, but I found two others. The first is similar to what I recall, a novel ([“Just This Once”](http://en.wikipedia.org/wiki/Just_This_Once)) written in the style of a mystery writer, but it is in the style of Jacqueline Susann. This was from 1993. There is no payoff of it having been a fake, though. In fact, the author apparently sued the programmer for royalties.

Then, there is a Russian novel, [“True Love”](http://www.businessinsider.com/novels-written-by-computers-2014-11), written in 2008. It is a reworking of the ideas of Anna Karenina, written in the style of a Japanese author.

None of the articles I have been able to find on any of these works say how much the humans are doing and what the computer is doing. Sure, if the humans come up with the whole plot and what happens in every scene, and then write that into a code the computer can read, they could have a computer that generates text similar to a particular author. That would then need to be cleaned up to correct the constant and terrible errors. At that point the machine is a very advanced thesaurus.

Nothing I can find actually goes into what the process is like though.

So, can computers write novels? Do any of you have any information on how the ones supposedly written by computer were actually produced?

---

<div class="post-metadata">

**Author:** ![The\_Joker\_and\_the\_Thief](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@The\_Joker\_and\_the\_Thief](https://boards.straightdope.com/u/The_Joker_and_the_Thief)\
**Post date:** [January 25, 2015, 5:13am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/2 "2015-01-25T05:13:27Z")

</div>

Based on this [article](http://www.theverge.com/2014/11/25/7276157/nanogenmo-robot-author-novel), novels have been created by the following methods:

> [@](#):
>
> He made a bunch of artificial intelligence agents and had them meander through a house at random, his program narrating their actions. When two characters ended up in a room together, he pulled dialogue from Twitter.

> [@](#):
>
> Pride and Prejudice but with each word of dialogue substituted for a word used in a similar context on Twitter

> [@](#):
>
> a program that took words from the [Voynitch manuscript], randomized them, and placed them on a page along with old alchemical and botanical images from the Internet Archive.

> [@](#):
>
> Borenstein’s program searches old detective novels on Project Gutenberg for sentences that include a series of words.

So it looks like most computer generated novels are just pulling text from human-written sources and throwing it at the wall, resulting in books that don’t make sense.

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [January 25, 2015, 5:49am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/3 "2015-01-25T05:49:01Z")

</div>

I remember reading computer-generated short stories in the early 1970’s, when the artificial intelligence programs were still at their most primitive. The stories were funny just because they were so silly. I doubt that any can be found on-line today, but I take a quick look.

ETA: Nope. Some quick google searches with various likely-sounding keywords. All I get is cites for more modern CG stuff and especially CGI stuff.

---

<div class="post-metadata">

**Author:** ![AnaMen](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@AnaMen](https://boards.straightdope.com/u/AnaMen)\
**Post date:** [January 25, 2015, 5:55am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/4 "2015-01-25T05:55:18Z")

</div>

There’s a big difference between yes, technically this is a novel of sorts and an actual novel that would get published/anyone would want to read. The “novel” should be judged on its own merits, not for the novelty of its origins.

---

<div class="post-metadata">

**Author:** ![vomit\_comet](https://avatars.discourse-cdn.com/v4/letter/v/73ab20/32.png) [@vomit\_comet](https://boards.straightdope.com/u/vomit_comet)\
**Post date:** [January 25, 2015, 9:32am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/5 "2015-01-25T09:32:27Z")

</div>

Maybe Kurzweil will write a novel after he downloads his brain into a computer.

---

<div class="post-metadata">

**Author:** ![Sage\_Rat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sage_rat/32/399_2.png) [@Sage\_Rat](https://boards.straightdope.com/u/Sage_Rat)\
**Post date:** [January 25, 2015, 9:41am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/6 "2015-01-25T09:41:12Z")

</div>

> [@flight](#):
>
> In [this](http://boards.straightdope.com/sdmb/showthread.php?t=747256) thread, the note is casually dropped that computers can currently write novels. This seems like utter bullshit to me. Hell, I would be amazed if computers can currently write an original metaphor, let alone develop a whole plot, something which depends upon human motivations.

Plotting is pretty mechanical. If you went through TV Tropes and picked out the various character types, genres, etc. and layered in other options for setting, happy/sad ending, etc. you could have something that could make something that would generate whole storylines, of arbitrary length.

Making all of that interesting is the part that takes some effort.

---

<div class="post-metadata">

**Author:** ![Son\_of\_a\_Rich](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/son_of_a_rich/32/5439_2.png) [@Son\_of\_a\_Rich](https://boards.straightdope.com/u/Son_of_a_Rich)\
**Post date:** [January 25, 2015, 2:06pm UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/7 "2015-01-25T14:06:53Z")

</div>

I could see computers writing screenplays for the SiFi channel, but that’s about it.

---

<div class="post-metadata">

**Author:** ![Voyager](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/voyager/32/133_2.png) [@Voyager](https://boards.straightdope.com/u/Voyager)\
**Post date:** [January 26, 2015, 3:52am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/8 "2015-01-26T03:52:48Z")

</div>

> [@Son\_of\_a\_Rich](#):
>
> I could see computers writing screenplays for the SiFi channel, but that’s about it.

Don’t be insulting. Some of my best friends are computers. They’d core dump at the very thought of sharks in tornadoes.

---

<div class="post-metadata">

**Author:** ![Voyager](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/voyager/32/133_2.png) [@Voyager](https://boards.straightdope.com/u/Voyager)\
**Post date:** [January 26, 2015, 3:54am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/9 "2015-01-26T03:54:13Z")

</div>

> [@AnaMen](#):
>
> There’s a big difference between yes, technically this is a novel of sorts and an actual novel that would get published/anyone would want to read. The “novel” should be judged on its own merits, not for the novelty of its origins.

It is kind of like the computer-written technical papers. They only get into scam conferences which never bother to look at the submissions. You don’t need a PhD in the field to know these things are fakes.

---

<div class="post-metadata">

**Author:** ![marshmallow](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@marshmallow](https://boards.straightdope.com/u/marshmallow)\
**Post date:** [January 26, 2015, 11:52am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/10 "2015-01-26T11:52:17Z")

</div>

Computers can write stories and vignettes. I didn’t mean to imply they’re any _good_, or would consistently pass a Turing test. Generally the longer the story, the worse they are because they eventually slip into word salad – like a chat bot. [Scheherazade](https://research.cc.gatech.edu/eilab/open-story-generation) is the best I’ve seen. You can read about it [here](http://www.theguardian.com/books/2014/nov/11/can-computers-write-fiction-artificial-intelligence) along with some other notes about computer generated metaphors. Here’s a sample of prose:

> [@](#):
>
> ```
> John got into his car with his disguise, gun and note in his knapsack and headed towards the Old Second in the next town over, repeating his rehearsed demands silently over and over in his head.
> 
> John watched while a little old lady left the bank and walked to her car and then slipped on his gloves, slipped his gun into his coat pocket, grabbed his mask and strode determinedly to the lobby door and pulled it open.
> 
> John looked at his reflection in the glass of the door, gave himself a little smirk and covered his face. John took another deep breath as he wondered if this was really a good idea, and entered the bank.
> 
> John looked around the bank, making sure his timing was right.
> 
> John spotted a young blond teller, Sally, behind the counter.
> 
> John stood behind the lady and toddler and politely waited his turn, noticing the nameplate on the counter ... “Sally”.
> 
> When it was his turn, John, wearing his Obama mask, approached the counter. Sally saw Obama standing in front of her and she felt her whole body tense up as her worst nightmare seemed to be coming true.
> 
> Once Sally began to run, John pulled out the gun and directed it at the bank guard.
> 
> John wore a stern stare as he pointed the gun at Sally.
> 
> Sally screamed hysterically which alerted other people in the bank.
> 
> ```

Don’t expect any deep insights into the human condition, unless it’s an accident. My main point in the original thread was if you combine these sorts of statistical analysis with an actual AI (instead of dumb, rote algorithms) then humans are cooked.

For other computer generated material with some semblance of thought behind them, there’s the [I like my relationships like I like my source, open]“I like my X like I like my Y, Z” generator (PDF),]([http://homepages.inf.ed.ac.uk/s0894589/petrovic13unsupervised.pdf](http://homepages.inf.ed.ac.uk/s0894589/petrovic13unsupervised.pdf)) which does actual analysis on relationships between words to craft the joke. Humans found the results funny 16% of the time, which is probably better than my hitrate.

Some samples:

> [@](#):
>
> I like my relationships like I like my source, open.
> 
> I like my boys like I like my sectors, bad.
> 
> I like my women like I like my gas, natural.

Here are some other computer generated jokes.

> [@](#):
>
> Q: What do you call a strange market?  
> A: A bizarre bazaar.
> 
> Q: What is the difference between leaves and a car?  
> A: One you brush and rake, the other you rush and brake.

Not exactly Bill Burr, but it might make a kid laugh (or an adult groan, which is a sort of win for a pun).

A site you can end up wasting a lot of time on is the Bot Or Not? poetry page. It’s usually easy to spot the bot, but sometimes you get snookered…and it’s especially disconcerting when you think a person is a bot. Check out the [leaderboards](http://botpoet.com/leaderboard/). [Here’s](http://botpoet.com/poem/untitled3/) a sample of bot poetry that was voted as being particularly human. The very end cracks me up:

> [@](#):
>
> This dissertation will show that the  
> love of a man and a woman is not the love of  
> steak and lettuce. Love is interesting to me  
> and fascinating to you but it is painful to  
> Bill and Diane. That is love!

So true, so true!

---

<div class="post-metadata">

**Author:** ![RealityChuck](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/realitychuck/32/195_2.png) [@RealityChuck](https://boards.straightdope.com/u/RealityChuck)\
**Post date:** [January 26, 2015, 2:00pm UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/11 "2015-01-26T14:00:34Z")

</div>

Since a novel is defined as a work of fiction of a particular word length (40,000 words for Hugo and Nebula ballots; 70-90,000 for a commercial publisher), I’m sure a computer could write one. The question is whether it’s a coherent narrative.

As Fred Pohl said, a moderately fast typist (50 wpm) can easily write the 70,000 words needed for a novel in a week. The problem is getting them in the right order. And that’s exactly the problem with a computer generated novel.

If there were a formula for novel writing, everyone would be writing successful ones. But there is no formula (“There are nine and sixty ways of constructing tribal lays/And every single one of them is right!”) and also so many factors you have to think about – basically, with every sentence you write, you need to consider dozens of factors (What does this say about the character? How does this advance the plot? Is this something the character would say/do? Does this make something I’m planning to write five chapters later more difficult to pull off?) that you need to get fixed in the editing process. There is no simple analysis, and I doubt anything other than a truly self-aware computer could manage it.

---

<div class="post-metadata">

**Author:** ![AnaMen](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@AnaMen](https://boards.straightdope.com/u/AnaMen)\
**Post date:** [January 26, 2015, 3:07pm UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/12 "2015-01-26T15:07:37Z")

</div>

Quote:  
I like my relationships like I like my source, open.

I like my boys like I like my sectors, bad.

I like my women like I like my gas, natural.  
These are great.  
I guess I’m probably a computer.

---

<div class="post-metadata">

**Author:** ![alphaboi867](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/alphaboi867/32/3898_2.png) [@alphaboi867](https://boards.straightdope.com/u/alphaboi867)\
**Post date:** [January 27, 2015, 2:09am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/13 "2015-01-27T02:09:14Z")

</div>

> [@The\_Joker\_and\_the\_Thief](#):
>
> ///So it looks like most computer generated novels are just pulling text from human-written sources and throwing it at the wall, resulting in books that don’t make sense.

> [@Sage\_Rat](#):
>
> Plotting is pretty mechanical. If you went through TV Tropes and picked out the various character types, genres, etc. and layered in other options for setting, happy/sad ending, etc. you could have something that could make something that would generate whole storylines, of arbitrary length.
> 
> Making all of that interesting is the part that takes some effort.

I’ve often whished someone would use techniques like to this to create a movie script; then produce said move _exactly as the script is written_ (no cheating with a script doctor) just to see how fucked up the end result would be. 😃 Am I alone?

---

<div class="post-metadata">

**Author:** ![Sage\_Rat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sage_rat/32/399_2.png) [@Sage\_Rat](https://boards.straightdope.com/u/Sage_Rat)\
**Post date:** [January 27, 2015, 5:13am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/14 "2015-01-27T05:13:30Z")

</div>

> [@alphaboi867](#):
>
> I’ve often whished someone would use techniques like to this to create a movie script; then produce said move _exactly as the script is written_ (no cheating with a script doctor) just to see how fucked up the end result would be. 😃 Am I alone?

I’m a programmer and a writer. I wasn’t joking. You could dynamically generate plots that would be indistinguishable from something a human could make. I used to generate roleplay scenarios by rolling a dice, over a table of options.

---

<div class="post-metadata">

**Author:** ![flight](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@flight](https://boards.straightdope.com/u/flight)\
**Post date:** [January 28, 2015, 2:53pm UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/15 "2015-01-28T14:53:02Z")

</div>

> [@Sage\_Rat](#):
>
> I’m a programmer and a writer. I wasn’t joking. You could dynamically generate plots that would be indistinguishable from something a human could make. I used to generate roleplay scenarios by rolling a dice, over a table of options.

Thanks for your replies everyone. The results are exactly was I suspected would be true, but very different from the articles I have been reading. **Sage Rat** , I can see now that writing a plot outline would be fairly easy. The trouble is incorporating that with text that flows, moves the plot forward, and reveals more about the characters.

---

<div class="post-metadata">

**Author:** ![Bricker](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@Bricker](https://boards.straightdope.com/u/Bricker)\
**Post date:** [January 28, 2015, 3:04pm UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/16 "2015-01-28T15:04:24Z")

</div>

There was a SF short story that I think I saw in John Campbell’s magazine back in the day, which posits an SF writer in a disagreement with his editor over changes to his latest work. The writer drags the editor to see “Rollo,” an experiment done by a professor friend of his. Rollo, a monkey, has parts of his brain wired to a computer, which uses the computing power of the monkey brain to analyze writing. (A takeoff on the “infinite monkeys on infinite typewriters” thought experiment.)

The writer contends his work, as submitted, is the best way to tell the story; the editor wants a scene change in the middle. The story is read to Rollo, who picks up the cadence, rhythm, and ‘voice’ of the narrative. At the point of the story in contention, they stop and let Rollo take over. He continues for a few lines, then introduces a scene change.

The editor is jubilant, saying this proves he was correct. But the writer says that this is exactly what he wanted to prove: that a soulless, calculating machine approach does indeed put a scene change in. But doing it that way, he argues, means that the editor’s job is useless, that any machine can calculate how to edit. It takes real human insight, compassion, and depth to know when to break the rules. He points out that if the editor disagrees, he’ll basically be admitting his job can be done by a souped-up monkey. Shaken, the editor agrees to leave the story as is, and leaves in search of a stiff drink.

The professor is impressed with the writer’s arguments, but asks, “Tell me, what would you have done if little Rollo typed it your way?”

Aggrieved, the writer admits, “Damn it, professor, that’s what I thought he was going to do.”

---

<div class="post-metadata">

**Author:** ![Leaper](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@Leaper](https://boards.straightdope.com/u/Leaper)\
**Post date:** [January 28, 2015, 3:09pm UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/17 "2015-01-28T15:09:30Z")

</div>

I recently read about a company that says they can write marketing copy with software. Related, but very different, I admit.

---

<div class="post-metadata">

**Author:** ![flight](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@flight](https://boards.straightdope.com/u/flight)\
**Post date:** [January 28, 2015, 4:23pm UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/18 "2015-01-28T16:23:33Z")

</div>

> [@Leaper](#):
>
> I recently read about a company that says they can write marketing copy with software. Related, but very different, I admit.

Now that I would totally believe.

---

<div class="post-metadata">

**Author:** ![dunkleosteus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dunkleosteus/32/9331_2.png) [@dunkleosteus](https://boards.straightdope.com/u/dunkleosteus)\
**Post date:** [January 28, 2015, 7:56pm UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/19 "2015-01-28T19:56:58Z")

</div>

You could probably do it, yeah. I would think you’d need a pretty solid natural language engine and then a program that could use some sort of fractal to create a story, ie start with a beginning and pick an ending. With just a start and an end, it’s pretty linear, so your fractal could split it in half and refine each half with something else interesting. You’d do that again for each half. Instead of changing locations of dots on a line you’d be modifying plot points, such that each iteration involved smaller and small changes to the overall plot. When you’ve worked down to small instantaneous changes in plot it would be easier to calculate a series of events that would allow the story to progress from one to the next, like speech or interactions. You’d probably want to run over the whole things a few times after to smooth it out, but it could probably work. If each plot point was assigned a “type” ie what sort of thing happens, events could be correlated together through the story. For example, a plot point could be classified as “type\_A interaction” and you could assign characters or locations to type\_A. Any where a type\_A interaction occurred would be related to other occurrences, so that you didn’t just have a series of random events. I think in essence the secret is generalizing the relationships that people have to each other, places, objects and events and making sure you keep track of them so that the story feels organic enough. You’d probably end up with a really wonky story as it would be mostly RNG driven but it would at least be relatively consistent.

---

<div class="post-metadata">

**Author:** ![Nava](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@Nava](https://boards.straightdope.com/u/Nava)\
**Post date:** [January 29, 2015, 5:32am UTC](https://boards.straightdope.com/t/can-computers-write-novels/710826/20 "2015-01-29T05:32:27Z")

</div>

> [@Voyager](#):
>
> Don’t be insulting. Some of my best friends are computers. They’d core dump at the very thought of sharks in tornadoes.

You left out the dino and the laser gun.

[Next page](https://boards.straightdope.com/t/can-computers-write-novels/710826.md?page=2)
