Keywords for Conversation

version 2 by Matt Wigdahl

  • Home page
  • Beginning
  • Previous



  • Example: * Small Talk - Demonstrate topic keyword highlighting and single-keyword conversation.

        "Small Talk"

        Include Keywords for Conversation by Matt Wigdahl.

        The Cubicle is a room. "This is a typical corporate wage slave's cubicle. Beige and grey decor, fluorescent lighting, and the ceaseless drone of idling computer fans inspire creatively suicidal ideation."

        The software linguist is a man in the Cubicle. The description of the software linguist is "Perched on his swivel chair, the programmer eyes you with mild interest and severe myopia."

        Understand "man/programmer/coder" as the software linguist.

        Smalltalk is a familiar thing.
        Cobol is a familiar thing. The printed name of Cobol is "the ancient, arcane mysteries of Cobol".
        Inform_7 is a familiar thing. The printed name of Inform_7 is "the natural-language excellence that is Inform 7". The keyword of Inform_7 is "Inform".
        Your awesome hack is a familiar thing.
        The crazy bug is a familiar thing.
        Applesoft BASIC is a familiar thing.

        Understand "Inform 7" as Inform_7. Understand "Inform" as Inform_7.

        The ask-suggestions of the software linguist are { Smalltalk, Cobol, Inform_7 }.
        The tell-suggestions of the software linguist are { awesome hack, crazy bug }.
        The unsuggested-topics of the software linguist are { Applesoft BASIC }.

        Greeting response for the software linguist:
            say "You address the coder. 'Hi!'[paragraph break]'Hello yourself! What do you want to talk about?'";

        Implicit greeting response for the software linguist:
            say "He swivels to look directly at you as you speak.";

        Farewell response for the software linguist:
            say "'Bye!'[paragraph break]'Come back any time you want to talk about obscure programming languages!'";

        Implicit farewell response for the software linguist:
            say "He turns back to the glow of his monitor as the conversation lapses.";

        Default response for the software linguist:
            say "The programmer glances at you as you speak, but he doesn't seem interested and quickly looks away as his attention wanders.";
            show topic suggestions implicitly;

        Response of the software linguist when asked about Cobol:
            say "His mouth twists in a grimace. 'Yeah, I've used Cobol. When I lost a drinking game.'";

        Response of the software linguist when asked about Smalltalk:
            say "He smiles. 'That language was way ahead of its time, man.'";

        Response of the software linguist when asked about Inform_7:
            say "He perks up. 'No way! You know about Inform 7? It's awesome, isn't it?'";

        Response of the software linguist when asked about Applesoft BASIC:
            say "The programmer starts in surprise. 'Funny you should mention that. You know, I'm working on writing an Apple II emulator from scratch.' He shrugs. 'It passes the time.'";

        Response of the software linguist when told about the awesome hack:
            say "He listens, nodding his head. 'Sounds cool! But you know you could have just used the Masterson algorithm there. Read your Knuth, dude...'";

        Response of the software linguist when told about the crazy bug:
            say "He seems interested as you describe your debugging session. 'Sounds like a tough one!'";

        test me with "ask linguist about cobol/cobol/topics/hack/BASIC/Inform 7".