Inline dictionaries: Input variations

Guest inputs may vary. In order to prevent confusion you can create various inputs.

Purpose: To list a variety of inputs in one template. For example, a guest may compliment your inf in different ways:

You are nice today.
You are kind.
You are clever.
You are good-looking.

Supposedly, you would like to teach your inf to reply “Thank you for the compliments” to all of these phrases. Of course, you can create 4 different templates, but it is much easier to make just one template and list all the input variants in it.

How it is done:

1. You can enter all guest’s input variants in the line Guest says and separate them with two vertical lines ‘||’.

Here is an example of such template:

Guest says:
$ You are nice today. || You are kind. || You are clever. || You are good-looking.
Inf ‘s emotion: smiling
Inf replies:
# {Thank you!/Thanks for your kind words!} {I like compliments!/I know!}


Of course, you can always use the symbol for any word ‘*’ and ending replacing tilde ‘~’. For example, like this:

Guest says:
$ you are nice * || you are kind * || you are cleve~ * || you are good-lookin~ *

2. You can use inline dictionaries. In the Guest says line you can only use the new entry view, i.e. variants in the parentheses {variant1/variant2/variant3/…}.

Guest says:
$ * you are {nice/kind/cleve~/good-lookin~} {!/--}


You can also use the following entry view in these inline dictionaries:
<variant1/variant2/variant3/…>

It is equal to the {variant1/ variant2/variant3/…/--} entry.

For example:

Guest says:
$ Do you watch Dr House <?>

This entry will work both for the guest's input “Do you watch Dr House?” and “Do you watch Dr House” (without a question mark at the end).

NOTE:
Inline dictionary entry type [=>variant1/variant2/variant3/…] will not work in the Guest says line.
• Currently, inline dictionaries do not work in Suggested topics and Unknown inputs.
• There is a frequent mistake in the input of inline dictionaries: users sometimes put two '/' symbols or forgets to enter an empty variant:

$ {/clever/smart}
$ {clever//smart}
$ {clever/smart/}

All these entries mean that there will be an empty variant in your inline dictionary and they will be equal to the entry:

$ {clever/smart/--}

and in this case this template will work for the following inputs:

clever
smart
as well as for an empty input (that may be a space and punctuation marks except for ‘?’ and ‘!’).