Conversation Framework for Sand-dancer

version 2 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 1 - Carry Out Listing

    Carry out listing suggested topics:
        consider the suggestion list construction rules;
        let ask-suggs be the number of entries in sugg-list-ask;
        let tell-suggs be the number of entries in sugg-list-tell;
        let other-suggs be the number of entries in sugg-list-other;
        if ask-suggs + tell-suggs + other-suggs is 0 begin;
            say "[nothing specific]";
            rule succeeds;
        end if;
        say "[if topic-request is implicit]([end if]You could ";
        if other-suggs > 0,
            say "[sugg-list-other in topic format][if tell-suggs + ask-suggs > 0]; or [end if]";
        if ask-suggs > 0,
            say "ask [it-them of the current interlocutor] about [sugg-list-ask in topic format][if tell-suggs > 0]; or [end if]";
        if tell-suggs > 0,
            say "tell [it-them of the current interlocutor] about [sugg-list-tell in topic format]";
        say "[if topic-request is implicit].)[paragraph break][otherwise].[end if]";