Step: A Highly Expressive Text Generation Language

Authors

  • Ian Horswill Northwestern University

DOI:

https://doi.org/10.1609/aiide.v18i1.21969

Keywords:

Text Generation, Logic Programming, Programming Languages, Interactive Narrative, Story Generation

Abstract

Games often generate text from human-authored templates and adapt that text to relevant context. Many systems have been developed to aid this process using tech-niques such as context-free grammars, randomization, logic programming, global state, and HTN planning. In this paper, I present Step, a novel programming language for text generation. So far as I can determine, previous techniques can all be implemented within Step using a few lines of code. This allows designers to mix-and-match features as needed, without having to write an interpreter for a new language. While extremely expressive as a programming language, Step is also intended to allow writers to add new text to an existing system with minimal markup and little knowledge of programming. In a head-to-head comparison, the Step implementation was more compact than, and used less markup than, a Prolog implementation of the same generator.

Downloads

Published

2022-10-11

How to Cite

Horswill, I. (2022). Step: A Highly Expressive Text Generation Language. Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, 18(1), 240-249. https://doi.org/10.1609/aiide.v18i1.21969