<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Generating Plots for a Given Query Using a Case-Base of Narrative Schemas</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Pablo Gervas</string-name>
          <email>pgervas@ucm.es</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Raquel Hervas</string-name>
          <email>raquelhb@fdi.ucm.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Carlos Leon</string-name>
          <email>cleon@ucm.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Facultad de Informatica, Universidad Complutense de Madrid Ciudad Universitaria</institution>
          ,
          <addr-line>28040 Madrid, Spain WWW home page:</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Instituto de Tecnolog a del Conocimiento, Universidad Complutense de Madrid Ciudad Universitaria</institution>
          ,
          <addr-line>28040 Madrid</addr-line>
          ,
          <country country="ES">Spain</country>
        </aff>
      </contrib-group>
      <fpage>103</fpage>
      <lpage>112</lpage>
      <abstract>
        <p>Computational generation of literary artifacts very often resorts to template-like schemas that can be instantiated into complex structures. With this view in mind, the present paper presents a casebased reasoning solution that builds a plot line to match a given query, expressed in terms of a sequence of abstraction of plot-bearing elements of a story, by retrieving and adapting templates for narrative schemas from a case-base. The abstractions of plot-bearing elements of a story are de ned in terms of Propp's character functions. The case-base of narrative schemas is built based on a review of a number of existing attempts to provide an elementary set of patterns for basic plots. A selection of these patterns, reformulated in terms of Propp's character functions, is used as case-base. The paper explores a solution for automatic generation of stories based on this formulation of the narrative schemas.</p>
      </abstract>
      <kwd-group>
        <kwd>computational creativity</kwd>
        <kwd>narrative</kwd>
        <kwd>narrative schemas</kwd>
        <kwd>transformational case adaptation</kwd>
        <kwd>compositional case adaptation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Humans that write stories reuse material from stories they know. This may
include characters, settings, scenes, or lines of dialogue. Of these, the most
important is the reuse of story structure. In order to capture computationally
this type of reuse of experience, an abstract representation of story structure is
needed. The present paper describes a case-based solution for story generation
that relies on Vladimir Propp's Morphology of the Folk Tale [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. A case-base of
narrative schemas described using this representation [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] is used to provide plot
lines to match a query, and the plot lines are then eshed out into full stories
by instantiating the abstract plot line with speci c story actions [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
To support the approach followed in this paper, four areas of previous work need
to be considered: case-based approaches to story generation, Propp's formalism
Copyright © 2015 for this paper by its authors. Copying permitted for private and
academic purposes. In Proceedings of the ICCBR 2015 Workshops. Frankfurt, Germany.
for analysing stories, the Propper system for story generation, and existing
approaches to case adaptation.
2.1
      </p>
      <sec id="sec-1-1">
        <title>Case-Based Approaches to Story Generation</title>
        <p>
          Roger Schank stated that the way in which memory works is not only based
on processes that manipulate mental data, but instead as continuous recalling
and adapting process of previous stories that de ne our world [
          <xref ref-type="bibr" rid="ref17 ref18">18, 17</xref>
          ]. Turner's
MINSTREL exempli ed this approach by generating short stories about King
Arthur and his Knights of the Round Table [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ]. MINSTREL handled episodic
memories in two di erent ways: either by instantiating a matching schema in the
story from a basic query, or by performing a basic adaptation on the query,
querying the episodic memory with it and returning an adaptation and modi cation
of the query. Knowledge intensive case-based reasoning approaches [
          <xref ref-type="bibr" rid="ref10 ref11 ref3">3, 10, 11</xref>
          ] use
Semantic Web technologies for knowledge representation and simple
combinatorial algorithms for generating the structure of new plots by reusing fragments
of structure of previous stories, inspired in the morphology of Russian folk-tales
studied by Vladimir Propp [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. Relying on more shallow representations, [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]
and [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ] introduce a story planning algorithm inspired by case-based reasoning
that incorporates vignettes { pre-existing short narrative segments { into the
story being generated. Other approaches to story generation based on case bases
of previous schemas include e orts towards incorporating analogy-based
reasoning to knowledge acquisition [
          <xref ref-type="bibr" rid="ref15 ref9">9, 15</xref>
          ]. These systems are usually focused on the
retrieval, adaptation and evaluation of old schemas to new domains. In general,
all these approaches rely on inter-domain analogies and generate new instances
of old narrative schemas. Reuse of previous stories is also applied in [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], where
case-like structures known as Story Contexts are mined from a set of previous
stories and used to inform the selection of the next action to add to a story in
an incremental generation process.
2.2
        </p>
      </sec>
      <sec id="sec-1-2">
        <title>Proppian Morphology of a Story</title>
        <p>
          At the start of the 20th century, Vladimir Propp [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] identi ed a set of
regularities in a subset of the corpus of Russian folk tales collected by Afanasiev [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ].
These regularities he formulated in terms of character functions, understood
as acts of the character, de ned from the point of view of their signi cance
for the course of the action. According to Propp, for the given set of tales,
the number of such functions was limited, the sequence of functions was
always identical, and all these fairy tales could be considered instances of a single
structure. The set of character functions identi ed by Propp includes a number
of elements that account for a journey (departure, return), a number of
elements that detail the involvement of the villain and the struggle between hero
and villain (villainy, struggle, victory, pursuit, rescue from pursuit), a
number of elements that describe the acquisition of a magical agent by the hero
(test by donor, hero reaction, acquisition magical agent).3
2.3
        </p>
      </sec>
      <sec id="sec-1-3">
        <title>The Propper System</title>
        <p>
          The Propper system developed by Gervas [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] constitutes a computational
implementation of a story generator initially based on Propp's description of how
his morphology might be used to generate stories.
        </p>
        <p>It relies on the following speci c representations for the concepts involved:
{ a character function, a label for a particular type of acts involving certain
named roles for the characters in the story, de ned from the point of view
of their signi cance for the course of the action
{ a sequence of character functions chosen as backbone for a given story
{ possible instantiations of a character function in terms of speci c story
actions, involving a number of predicates describing events with the use of
variables that represent the set of characters involved in the action
Based on these representations the Propper system de nes a procedure that
rst chooses a sequence of character functions to act as abstract narrative
structure to drive the process, and then progressively selects instantiations of these
character functions in terms of story actions to produce a conceptual
representation { in terms of an ordered sequence of predicates { of a valid story. This
conceptual representation is a fabula, a sequence of states that contain a chain of
story actions { which are instances of those character functions. A story action
involves a set of preconditions { predicates that must be present in the context
for continuity to exist {, and a set of postconditions { predicates that will be
used to extend the context if the action is added to it. Each story action is linked
to its context of occurrence by having its preconditions satis ed by the preceding
state.
2.4</p>
      </sec>
      <sec id="sec-1-4">
        <title>Case Adaptation</title>
        <p>Probably one of the most di cult processes in the CBR cycle is the reuse or
adaptation stage. After retrieving the most similar case (or cases) from the case
base, the solution from the retrieved case must be used to create a new solution
for the problem at hand.</p>
        <p>
          Wilke and Bergman [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ] established a classi cation of CBR adaptation into
three di erent methods: null adaptation, transformational adaptation and
generative adaptation. The simplest kind of adaptation is null adaptation, where
the solution of the retrieved case is used without any modi cation. As simple as
this adaptation method is, it can obtain very good results for simple problems.
Transformational adaptation consists on the transformation of the solution of
3 For reasons of space, only a number of character functions relevant to the examples
given in the paper are described. Readers can check the referenced sources for more
detail.
the retrieved case into the solution required for the query. In order to do that,
the retrieved solution may be reorganized and modi ed by deleting or adding
new elements. Finally, generative adaptation consists on generating the new
solution from scratch, but reusing the process used to obtain the solution from the
retrieved case.
        </p>
        <p>These three adaptation methods are formalized by considering that only one
case is retrieved and adapted. However, some problems may be better solved by
reusing information from more than one case. This is what Wilke and Bergman
called compositional adaptation, where the new solution is obtained by adapting
the solutions of multiple cases. This multiple case adaptation can be done using
transformational or generative methods, but the main idea is that the solution
for the case at hand can be better obtained by taking into account more than
one case from the case base.</p>
        <p>
          There are many examples of compositional adaption in recent CBR works.
Arshadi and Badie [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] apply this adaptation in a tutoring library system. In this
kind of application it is probable that many cases can be similar to the user
request at the same time, so it is important to take all of them into account
when generating the solution for a given query. Hervas and Gervas [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] also use
multiple cases for text generation based on templates. When the information
that must appear in a sentence is not covered by the template of the retrieved
case, a new retrieval process is triggered in order to nd more cases which
templates can cover the information in the query. Ontan~on and Plaza [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] present the
concept of amalgam as a formal operation over terms in a generalization space.
Although amalgams are not proposed as an adaptation method by themselves,
the notion of amalgam is related to merging operations that can be used in
compositional adaptation to combine two or more cases. Muller and Bergmann [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]
use a compositional adaptation approach for cooking recipes represented as
cooking work ows. During the adaptation stage, missing parts of retrieved cooking
work ows are covered using information from other cases.
3
        </p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Case-Based Construction of Plot Lines for Stories</title>
      <p>The present paper describes a case-based approach to the construction of plot
lines for stories { described as sequences of character functions { which can then
be eshed out into stories.
3.1</p>
      <sec id="sec-2-1">
        <title>Case-Based Construction of Plot Lines</title>
        <p>The system operates from a query provided by the user. This query is expressed
as a sequence of character functions that the user would like to see included in
the desired plot line.</p>
        <p>
          The system compares the given query with the set of plot lines represented
in its case base.
The Case-Base The case base of schemas used for this paper is built from
the narrative schemas reviewed in [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. These correspond to a set of sequences of
character functions { in Propp's sense of plot relevant abstractions of the activity
of characters { that correspond to a number of theoretical characterizations of
possible plots for stories, also referred as narrative schemas. The case-based
reasoning approach will therefore operate over sequences of character functions,
and it will return a sequence of character functions that best matches the given
query.
        </p>
        <p>Merging Plot Lines When dealing with plot lines in terms of sequences of
character functions it is often necessary to merge two plot lines to obtain a third
plot line. Because plot lines are sequentially ordered, and speci c elements in
the plot may have dependencies with other elements, the relative order in which
they appear in the sequence is very relevant. For the purposes of the present
paper, this is done as follows:
{ the query is traversed sequentially
{ each character function in the query is checked against the next character
function in the case
{ if they match the character function is added to a matching subsequence
{ if they do not, the character function from the query is added to a wanted
subsequence, and the next character function from the query is checked
against the character function in the case
{ if the end is reached for the query the rest of the case is added as an added
subsequence
{ if the end is reached for the case the rest of the query is added as a wanted
subsequence</p>
        <p>The merge is constructed by concatenating into a single sequence the
subsequences of character functions that are generated during the merge in this
fashion. This has the advantage of interleaving the character functions from the
original query with the contributions from the various cases involved while
always respecting the order in which these character functions appeared in the
query.</p>
        <p>Similarity We consider a similarity function for plot lines based on identifying
the relative mutual coverage between query and case. The set of subsequences of
the query that appear as subsequences of the case in the corresponding order is
referred to as the match. The remainder is the set of subsequences of the query
that are not covered by the case. The addition is the set of subsequences of the
case that did not appear in the query.</p>
        <p>The similarity employed in the current version of the system is calculated as
an average between the percentage of the query covered by the case { the ratio
between the size of the match and the size of the query { and the percentage
of the case that is involved in the match { the ratio between the size of the
match and the size of the case. This is intended to capture the suitability of the
case both in terms of maximum coverage of the query and in terms of minimum
addition of character functions beyond the query.</p>
        <p>To compute these values the query is merged with the case as described
above. The match is then reckoned to be the set of matching subsequences. The
remainder is then reckoned to be the set of wanted subsequences. The addition
is then reckoned to be the set of added subsequences.</p>
        <p>Retrieval and Adaptation If there is a case whose plot line matches the
query, that case is returned as solution.</p>
        <p>Otherwise, the cases are ranked based on their similarity with the query.
The set of character functions that appears in the overall set of subsequences
resulting from this process constitutes a possible solution to the problem posed
by the query, as it would constitute a combination of the query and the case.</p>
        <p>If the retrieved case does not cover all the character functions in the query,
further retrieval processes will be required. This corresponds to solving the given
query with a complex story that combines more than one plot line. To achieve
this, an additional retrieval process is set in motion using the remainder of the
rst retrieval process as a query to the second one.</p>
        <p>For each additional case retrieved, the resulting solution is merged with the
result of prior stages using the same procedure as for merging a query and a case.
These ensures that relative order of appearance of related character functions
within each narrative substructure that has been reused is respected in the nal
solution.</p>
        <p>The retrieval and adaptation process can be iterated until the remainder
of the query is empty. The merge obtained at this point is the nal solution.
This sequence of character functions is the solution found by the system as plot
outline for a story to match the given query.</p>
      </sec>
      <sec id="sec-2-2">
        <title>An Example of Plot Line Construction For a query villainy departure</title>
        <p>villain punished return, the most similar case retrieved is:4
villainy hero pursued rescue from pursuit struggle victory
villain punished</p>
        <p>The merge of the query and case, with the di erent subsequences marked5
is:
villainy departure hero pursued rescue from pursuit struggle
victory villain punished return</p>
        <p>Within the resulting merge, the elements not matched by the retrieved case
(the remainder: departure return) appear in the same relative position with
respect to the other elements of the query as they did in the original sequence
of the query.
4 Elements in the case that match the query are shown in plain text, and elements
that do not are shown in italic.
5 Matched elements are shown in plain text, wanted elements in small caps, and added
elements in italic.</p>
        <p>To cover this remainder, a second case-based reasoning process is set in
motion, with the remainder as a query. For this second process, the query would
then be departure return. The most similar case retrieved is:6
departure difficult task task resolved hero pursued
rescue from pursuit struggle victory test by donor hero reaction
acquisition magical agent return</p>
        <p>The merge of this additional case with the result of the prior CBR process,
with the di erent subsequences marked as above is
villainy departure difficult task task resolved hero pursued
rescue from pursuit struggle victory villain punished
test by donor hero reaction acquisition magical agent return
This implies that the remainder is now empty.
3.2</p>
      </sec>
      <sec id="sec-2-3">
        <title>Fleshing out the Plot Line for the Story</title>
        <p>Because character functions are abstractions of plot relevant activities by the
characters, the draft plot line obtained as a result of the retrieval and adaptation
stage needs to be eshed out before it can be considered a story.</p>
        <p>
          This involves instantiating the character functions with speci c story actions.
This can be done following the original procedure for the Propper system [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] for
obtaining a fabula from the sequence of character functions corresponding to
the resulting plot line. This relies on de nitions of the story actions de ned in
terms of predicates that de ne an action, with identi ers for the characters as
arguments. The de nitions of these story actions also contain predicates that
de ne preconditions and e ects of the action in question. The instantiation
procedure relies on uni cation of each new story action with the previous context to
guarantee continuity and coherence in terms of which characters perform which
actions.
        </p>
        <p>Table 1 presents an example of story corresponding to the plot line obtained
as a result of the case-based reasoning procedure described in section 3.1.</p>
        <p>It is worth noting that although the character functions being instantiated
arise from two di erent original plot lines as provided by the cases, the eshing
out procedure instantiates them with story actions that link up to conform a
single coherent story about a hero (character id147) and a villain (character
id755). An initial villainy (state 0) forces the hero to set out (state 1), he faces a
di cult task (states 2-3), he undergoes several con icts with the villain (states
4-5 and 6-7). The end of this particular story involves a meeting with a donor
that provides a magical agent (states 9-11) and an eventual return of the hero
(state 12).
4</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Discussion</title>
      <p>The approach followed for case adaptation in the described procedure is
transformational and compositional. Both the transformation of the retrieved cases to
6 The use of italics shows the match of the retrieved case with the sequence resulting
from the earlier CBR process.
better match the query and the composition of more than one case are covered
by the described procedure for merging two sequences of character functions
while respecting the relative order of appearance of their elements.</p>
      <p>
        The procedure followed for story construction operates at a higher level of
abstraction than [
        <xref ref-type="bibr" rid="ref14 ref16 ref19">19, 14, 16</xref>
        ], and with greater exibility than [
        <xref ref-type="bibr" rid="ref10 ref11 ref3">3, 10, 11</xref>
        ] { who
also use character functions { due to its highly compositional approach to case
recombination.
      </p>
      <p>The case-based reasoning procedure described relies on cases to provide a
complete backbone for a plot line, reusing the structure of a given plot
completely, with no option for leaving out certain parts of it. The procedure for
successive retrievals, together with a merging approach that respects the
relative order in which character functions occur in the query and interleaves the
additions without repetition, allow for more than one such plot backbone to be
combined into more complex stories. However, this approach will only succeed as
long as there exists some case in the case base with a reasonably similar sequence
of character functions. Beyond this, it might be necessary to consider alternative
approaches that allow reuse of fragments of cases, to be recombined into longer
sequences.</p>
      <p>
        The choice of case base employed here is built from schemas that are
intended as complete plots. Alternative formulations of the case base are possible,
built from smaller units of plot, such as scenes. These might be represented
as subsequences of character functions that occur frequently in di erent plot
lines. A solution along these lines might de ne the case base in terms of smaller
units that would be abstracted during the construction of the case base. This
procedure is similar to the one employed in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], where cases are retrieved to
generate the actions of the story one by one (one case per action). An
alternative procedure would be to operate over a case base of complete plots but de ne
a di erent retrieval algorithm that allows a certain fragmentation of these plots
during retrieval.
      </p>
      <p>Two important aspects to consider in creative plot generators are coherence
and novelty. By virtue of its process of reusing large segments of existing plots,
the described procedure is likely to generate coherent plots, though how
coherence is a ected by the merging procedure should be addressed in further work.
In that sense, the process of instantiation with story actions employed by the
Propper system presents an advantage in that it checks the satisfaction of
preconditions of each action in its context during construction. With respect to
novelty, processes that reuse existing solutions are exposed to the risk of
reproducing aspects of prior material. To address this risk, future work should
consider establishing limits on the extent of reuse considered. These could take
the form of avoiding cases that are perfect matches for a given query, and
preferring solutions obtained by combination of more than one case.
5</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusions</title>
      <p>The case-based reasoning solution described in this paper operates at a su
ciently high level of abstraction to allow the construction of valid plot lines by
combination of cases that represent narrative schemas which are merged into a
plot line that matches a given query, and which can then be instantiated into a
speci c coherent story.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgements</title>
      <p>This paper has been partially supported by the project WHIM 611560 funded
by the European Commission, Framework Program 7, the ICT theme, and the
Future Emerging Technologies FET program.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Alexander</given-names>
            <surname>Nikolayevich</surname>
          </string-name>
          <article-title>Afanasyev</article-title>
          .
          <article-title>Narodnye russkie skazki A. N. Afanaseva [Folk Russian tales of A</article-title>
          . N. Afanasev], volume
          <volume>1</volume>
          -
          <fpage>3</fpage>
          . Moscow,
          <year>1855</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Niloofar</given-names>
            <surname>Arshadi</surname>
          </string-name>
          and
          <string-name>
            <given-names>Kambiz</given-names>
            <surname>Badie</surname>
          </string-name>
          .
          <article-title>A compositional approach to solution adaptation in case-based reasoning and its application to tutoring library</article-title>
          .
          <source>In Proceedings of the 8th German Workshop on Case-Based Reasoning</source>
          , Lammerbuckel,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>P.</given-names>
            <surname>Gervas</surname>
          </string-name>
          ,
          <string-name>
            <surname>B.</surname>
          </string-name>
          <article-title>D az-</article-title>
          <string-name>
            <surname>Agudo</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Peinado</surname>
            , and
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Hervas</surname>
          </string-name>
          .
          <article-title>Story Plot Generation Based on CBR</article-title>
          .
          <article-title>Knowledge-Based Systems</article-title>
          . Special Issue: AI-
          <year>2004</year>
          ,
          <volume>18</volume>
          :
          <fpage>235</fpage>
          {
          <fpage>242</fpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Pablo</given-names>
            <surname>Gervas</surname>
          </string-name>
          .
          <article-title>Computational Drafting of Plot Structures for Russian Folk Tales</article-title>
          .
          <source>Cognitive Computation</source>
          ,
          <volume>07</volume>
          /
          <year>2015</year>
          2015.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Pablo</given-names>
            <surname>Gervas</surname>
          </string-name>
          , Carlos Leon, and
          <string-name>
            <given-names>Gonzalo</given-names>
            <surname>Mendez</surname>
          </string-name>
          .
          <article-title>Schemas for narrative generation mined from existing descriptions of plot</article-title>
          .
          <source>In Computational Models of Narrative</source>
          , Atlanta, Georgia, USA, 05/
          <year>2015</year>
          2015.
          <article-title>Scholoss Dagstuhl OpenAccess Series in Informatics (OASIcs), Scholoss Dagstuhl OpenAccess Series in Informatics (OASIcs).</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Raquel</given-names>
            <surname>Hervas</surname>
          </string-name>
          and
          <string-name>
            <given-names>Pablo</given-names>
            <surname>Gervas</surname>
          </string-name>
          .
          <article-title>Case-based reasoning for knowledge-intensive template selection during text generation</article-title>
          . In Thomas R. Roth-Berghofer, Mehmet H. Goker, and H.Altay Guvenir, editors,
          <source>Advances in Case-Based Reasoning</source>
          , volume
          <volume>4106</volume>
          of Lecture Notes in Computer Science, pages
          <volume>151</volume>
          {
          <fpage>165</fpage>
          . Springer Berlin Heidelberg,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Gilbert</given-names>
            <surname>Mu</surname>
          </string-name>
          <article-title>ller and Ralph Bergmann. Compositional Adaptation of Cooking Recipes using Work ow Streams</article-title>
          . In Computer Cooking Contest,
          <source>Workshop Proceedings ICCBR 2014</source>
          , Springer,
          <year>2014</year>
          .
          <article-title>The original publication is available at www</article-title>
          .springerlink.com.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Santiago</given-names>
            <surname>Ontan</surname>
          </string-name>
          <article-title>~on and Enric Plaza. Amalgams: A formal approach for combining multiple case solutions</article-title>
          .
          <source>In Isabelle Bichindaritz and Stefania Montani</source>
          , editors,
          <source>Case-Based Reasoning. Research and Development</source>
          , volume
          <volume>6176</volume>
          of Lecture Notes in Computer Science, pages
          <volume>257</volume>
          {
          <fpage>271</fpage>
          . Springer Berlin Heidelberg,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Santiago</given-names>
            <surname>Ontan</surname>
          </string-name>
          <article-title>~on and Jichen Zhu. On the role of domain knowledge in analogybased story generation</article-title>
          .
          <source>In Proceedings of the Twenty-Second International Joint Conference on Arti cial Intelligence -</source>
          Volume Volume Two,
          <source>IJCAI'11</source>
          , pages
          <fpage>1717</fpage>
          {
          <fpage>1722</fpage>
          . AAAI Press,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>F.</given-names>
            <surname>Peinado</surname>
          </string-name>
          and
          <string-name>
            <given-names>P.</given-names>
            <surname>Gervas</surname>
          </string-name>
          .
          <article-title>Evaluation of automatic generation of basic stories</article-title>
          .
          <source>New Generation Computing</source>
          ,
          <volume>24</volume>
          (
          <issue>3</issue>
          ):
          <volume>289</volume>
          {
          <fpage>302</fpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>Federico</given-names>
            <surname>Peinado</surname>
          </string-name>
          . Un Armazon para el Desarrollo de Aplicaciones de
          <article-title>Narracion Automatica basado en Componentes Ontologicos Reutilizables</article-title>
          .
          <source>PhD thesis</source>
          , Universidad Complutense de Madrid, Madrid,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Rafael</surname>
          </string-name>
          <article-title>Perez y Perez and Mike Sharples. MEXICA: A computer model of a cognitive account of creative writing</article-title>
          .
          <source>Journal of Experimental &amp; Theoretical Arti cial Intelligence</source>
          ,
          <volume>13</volume>
          (
          <issue>2</issue>
          ):
          <volume>119</volume>
          {
          <fpage>139</fpage>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <given-names>Vladimir</given-names>
            <surname>Propp</surname>
          </string-name>
          .
          <article-title>Morphology of the Folk Tale</article-title>
          . Akademija, Leningrad,
          <year>1928</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>M.</given-names>
            <surname>Riedl</surname>
          </string-name>
          and
          <string-name>
            <given-names>Carlos</given-names>
            <surname>Leon</surname>
          </string-name>
          .
          <article-title>Toward vignette-based story generation for drama management systems</article-title>
          .
          <source>In Workshop on Integrating Technologies for Interactive Stories - 2nd International Conference on Intelligent Technologies for Interactive Entertainment</source>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <given-names>Mark</given-names>
            <surname>Riedl</surname>
          </string-name>
          and
          <string-name>
            <given-names>Carlos</given-names>
            <surname>Leon</surname>
          </string-name>
          .
          <article-title>Generating story analogues</article-title>
          .
          <source>In AIIDE</source>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Mark</surname>
            <given-names>O.</given-names>
          </string-name>
          <string-name>
            <surname>Riedl</surname>
            and
            <given-names>Neha</given-names>
          </string-name>
          <string-name>
            <surname>Sugandh</surname>
          </string-name>
          .
          <article-title>Story planning with vignettes: Toward overcoming the content production bottleneck</article-title>
          .
          <source>In Interactive Storytelling</source>
          , volume
          <volume>5334</volume>
          of Lecture Notes in Computer Science, pages
          <volume>168</volume>
          {
          <fpage>179</fpage>
          . Springer,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <given-names>R.</given-names>
            <surname>Schank</surname>
          </string-name>
          .
          <article-title>Dynamic Memory : A Theory of Reminding and Learning in Computers and People</article-title>
          . Cambridge University Press,
          <year>1982</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <given-names>R.</given-names>
            <surname>Schank</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Abelson</surname>
          </string-name>
          . Scripts,
          <article-title>Plans, Goals and Understanding: an Inquiry into Human Knowledge Structures</article-title>
          . L. Erlbaum, Hillsdale, NJ,
          <year>1977</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <given-names>Scott</given-names>
            <surname>Turner</surname>
          </string-name>
          .
          <article-title>MINSTREL: A Computer Model of Creativity and Storytelling</article-title>
          .
          <source>PhD thesis</source>
          , University of California at Los Angeles, Los Angeles, CA, USA,
          <year>1992</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <given-names>Wolfgang</given-names>
            <surname>Wilke</surname>
          </string-name>
          and
          <string-name>
            <given-names>Ralph</given-names>
            <surname>Bergmann</surname>
          </string-name>
          .
          <article-title>Techniques and knowledge used for adaptation during case-based problem solving</article-title>
          .
          <source>In Proceedings of the 11th International Conference on Industrial and Engineering Applications of Arti cial In Telligence and Expert Systems: Tasks and Methods in Applied Arti cial Intelligence</source>
          , IEA/AIE '98, pages
          <fpage>497</fpage>
          {
          <fpage>506</fpage>
          , London, UK, UK,
          <year>1998</year>
          . Springer-Verlag.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>