{'fraction_non_alphanumeric': 0.02857142857142857, 'fraction_numerical': 0.0, 'mean_word_length': 5.5528455284552845, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
ExpReal: a Writing Language and System for Authoring Texts in Interactive Narrative

As interactive narratives, by definition, change according to the user’s choices (dynamic story), so do the dialogue utterances by the characters. Writing all possible utterances manually faces scaling problems. This motivates the use of natural language generation techniques. We present ExpReal, a surface realizer and templating language that allows authors of interactive narratives to write flexible and enriched templates while maintaining control over their use. Templates are automatically selected based on author-specified conditions relating to the world state (e.g. characters’ emotions) or the current task at hand. ExpReal has been developed to support at least three languages (English, French and Dutch).