Inline dictionaries: Reply variations

Purpose: To diversify your inf's replies.

How it is done:

Making your inf's replies more interesting is possible by teaching it to use synonyms – words and phrases with similar meanings.

You should put similar words into parentheses – ‘{}’ – separating them with the ‘/’ symbol. Such entry is called an inline dictionary. This kind of template will look like this:

Guest says:
$ How old are you?
Inf replies:
# I’m sorry, but {it is not polite to ask a lady about her age./this is confidential information./I don’t remember.}


Possible uses:

In a reply to the input “How old are you?” your inf will randomly choose one of the six possible variants of a reply. You can use a list of synonyms and make thousands of possible replies.

Do not make too many of them – this may slow down your inf processing time.

You can add an empty reply variation to the inline dictionary. To do this you should put 2 hyphens ‘--’ instead.

Guest says:
$ How old are you?
Inf replies:
# I’m sorry, but {it is not polite to ask a lady about her age/this is secret information/I don’t remember}. {Ask me this some other time./--}

There is another (less convenient) way of making inline dictionaries which is similar to the one above: [=>variant1/variant2/variant3/variant4/…]

You can enter the example as shown below and the result will be the same as above:

# I’m sorry, but [=>it is not polite to ask a lady about her age/this is secret information/I don’t remember]. [=>Ask me this some other time./--]

NOTE:
• Remember that words in sentences can have different combinations. You need to double check that the word combinations are actually possible and make sense.
Inline dictionaries do not work in Suggested topics and Unknown inputs.
• There are frequent mistakes in replies of inline dictionaries: users sometimes put two ‘/’ symbols or forget to enter an empty variant:

Inf replies:
# {Nice.//Great!}
# {/Nice./Great!}
# {Nice./Great!/}

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

# {Nice./Great!/--}

If you only have the inline dictionary in your template, then sometimes another template will work instead of this. This is because in these cases empty replies are forbidden.

Hint: Your inf’s replies will be more interesting if they contain various phrases and if different structures are used (plain substitution of words will become obvious). Your best solution would be to make several possible replies and variations to the same phrase.