Skip to content

Tutorial Langauge Grammar Manipulation

Keith Sterling edited this page Nov 9, 2017 · 7 revisions

Grammar Manipulation

  • normalize
  • denormalize
  • person
  • person2
  • gender

Normalize

<category>
    <pattern>HELLO *</pattern>
    <template>
        <normalize><star /></normalize>
    </template>
</category>
Loading, please wait...
No bot root argument set, defaulting to [.]
Y-Bot version 0.0.1, initiated March 14, 2017
Hi, how can I help you today?
>>> XXX
YYY

Denormalize

<category>
    <pattern>HELLO *</pattern>
    <template>
        <denormalize><star /></denormalize>
    </template>
</category>
Loading, please wait...
No bot root argument set, defaulting to [.]
Y-Bot version 0.0.1, initiated March 14, 2017
Hi, how can I help you today?
>>> XXX
YYY

Person

<category>
    <pattern>HELLO *</pattern>
    <template>
        <person><star /></person>
    </template>
</category>
Loading, please wait...
No bot root argument set, defaulting to [.]
Y-Bot version 0.0.1, initiated March 14, 2017
Hi, how can I help you today?
>>> XXX
YYY

Person2

<category>
    <pattern>HELLO *</pattern>
    <template>
        <person2><star /></person2>
    </template>
</category>
Loading, please wait...
No bot root argument set, defaulting to [.]
Y-Bot version 0.0.1, initiated March 14, 2017
Hi, how can I help you today?
>>> XXX
YYY

Gender

<category>
    <pattern>HELLO *</pattern>
    <template>
        <gender><star /></gender>
    </template>
</category>
Loading, please wait...
No bot root argument set, defaulting to [.]
Y-Bot version 0.0.1, initiated March 14, 2017
Hi, how can I help you today?
>>> XXX
YYY

Back to Tutorial | Back - Text Translation | Next - List Processing

Clone this wiki locally