After more than half a century of research, artificial intelligence has finally entered its useful age. Creative industries were considered "untouchable" for a long time due to the human nature of creativity. However, with recent breakthroughs, AI is making great strides. Whether dealing with images, video, music, speech or text, deep learning has become the go-to solution for automation in almost any domain.

While AI can play the role of the artist itself, the most promising examples are those where human and machine collaborate — with AI filling the role of a co-creator.

State-of-the-art: today's script generators

The engine behind any text-generating AI is a language model — a statistical model that predicts and writes text by learning from large volumes of examples. In 2016, Sunspring was released, the first short film ever to be entirely written by an AI. While each sentence is grammatically correct, the dialogue reads as though vital context is missing — semantically almost devoid of meaning.

The common theme across AI-generated scripts is this: while language models have learned to write syntactically correct English, they seem to have little understanding of how a story is actually told. Characters lack consistent personalities. Settings are established then ignored. And stories fall apart at scale because the models cannot maintain coherence across scenes.

"While these language models have learned how to write syntactically correct English text, they seem to have little understanding of how a story is told."

Beyond the state-of-the-art: introducing "story-awareness"

At ScriptBook, we put the storyline central. We spent years building deep expertise in AI that can analyze and comprehend screenplays. This strength allows us to transfer key elements from our decision support system to a generative AI — developing an engine that is genuinely more capable of generating stories. We call this concept "story-awareness," built across three dimensions.

Character awareness

A good script generator should understand that characters are defined not just by their names, but by their traits and personalities. A character's gender and looks don't change throughout a story, and shifting personalities should be gradual and sensible.

At ScriptBook, our algorithms distinguish different characters from each other, extract their traits, likeability, and emotions — building what we call a "DNA profile" of each character. In the script generator, we reverse this process: every time a character acts or speaks, the model is made aware of that character's profile. The result is more consistent, believable behaviour.

📄

Figure: Character awareness example

ScriptBook-generated excerpt showing Harry and Dumbledore maintaining consistent character traits in generated dialogue.

Excerpt generated by ScriptBook's engine demonstrating character awareness — characters initialized with DNA profiles from the Harry Potter films.

Style and theme awareness

A good story has a setting, theme, and genre — and doesn't suddenly shift halfway through. At ScriptBook, we make use of thousands of scripts spanning all conceivable genres. We extract a script's "fingerprint" containing story-level parameters and make the generator aware of the preferred fingerprint — not unlike requesting a preferred setting, theme, or genre from a human writer.

📄

Figure: Theme awareness example

ScriptBook-generated excerpt placing characters in a Kill Bill Vol. 1 style context — demonstrating increased action and tension.

Excerpt generated by ScriptBook's engine demonstrating theme awareness — same characters placed in a Quentin Tarantino-style script fingerprint.

Script structure awareness

Finally, we incorporate a screenplay's structural elements — scene headers, dialogue formatting, location descriptions — explicitly into the language model. When we generate a scene set in a specific location, the generator is made aware of that context, and it is reflected consistently in the output.

📄

Figure: Structure awareness example

ScriptBook-generated excerpt demonstrating scene location awareness — a train scene that consistently reflects its setting.

Excerpt generated by ScriptBook's engine demonstrating script structure awareness.

Moving forward

At ScriptBook, we understand stories. Our generative engine plugs parameters from our existing script analysis AI into a language model, resulting in improved writing capabilities and story consistency. That said, our model is still far from becoming the next generation screenwriter.

The most promising examples in AI are those where humans and machines collaborate. Imagine an application in which the writer specifies a story's outline, and uses AI to write out the various scenes — an invaluable source of inspiration, if not a finished product.

And while we don't think such machines will replace human writers anytime soon, we are convinced it's only a matter of time before AI finds its way into the screenwriter's toolbox.

References

  1. Caulfield, B. (2018). NVIDIA CEO on How Deep Learning Makes Turing's Graphics Scream. NVIDIA Blog.
  2. Barnett, D. (2017). Horror fiction by numbers: My AI collaboration. The Guardian.
  3. Shannon, L. (2017). This Harry Potter AI-generated fanfiction is remarkably good. The Verge.
  4. Newitz, A. (2016). Movie written by algorithm turns out to be hilarious and intense. Ars Technica.