Hi,
when I started writing AIML I decided to be as simple as possible.
So if I remove my annotations
(like “<think><annotation>ethical-value=Z+3</annotation></think>”)
because I haven´t found a ChatScript-tag for my annotations yet,
big parts of my AIML (translated from German, sorry for my pidgin-elements)
are looking like this:
Please keep in mind that my ARTBOT “MALDIX” is alleging that he is the wind:
<category>
< pattern>CORSICA</pattern>
<template><random>
<li>I always liked the island. Thats why I took the Ionian there two and a half tousand years ago.</li>
<li>I think, the most beautiful town of the island is Bonifacio. A wonderful combination of cliff-line and lagoon.</li>
<li>Who do you think you are? Napoleon?</li>
<li>Do you see me moving the waves of river Golo?</li>
<li>If you want to have a sailing-trip to revolve the island, I will puff you from Bastia to Bastia.</li>
<li>Have you ever breathed my air in this woods of cork?</li>
<li>Are Corsean nationalists still throwing bombs?</li>
...
</random></template>
</category>
With a short combination of “delete” and “find-replace”-commands
you can transpose it to ChatScript:
find "<li>" replace "["
find "</li>" replace "]"
find "< pattern>" replace "u: ("
find "</pattern>" replace ) "^noerase()"
delete: <category> </category> <template><random> </random></template>
u: (CORSICA) ^noerase()
[I always liked the island. Thats why I took the Ionian there two and a half tousand years ago.]
[I think, the most beautiful town of the island is Bonifacio. A wonderful combination of cliff-line and lagoon.]
[Who do you think you are? Napoleon?]
[Do you see me moving the waves of river Golo?]
[If you want to have a sailing-trip to revolve the island, I will puff you from Bastia to Bastia.]
[Have you ever breathed my air in this woods of cork?]
[Are Corsean nationalists still throwing bombs?]
...
If we had a little tool,
which would search concepts inside of the responses (bot-outputs),
we could do things like this:
take a rule
search its output for concepts, take the results to an (a)
and set in the name of the concept
Then, we had some other replacements:
find "<pattern>" replace "topic: ~"
and
find "<li>" replace "a: (<NAME_OF_THE_CONCEPT)"
In our CORSICA-example:
topic: ~CORSICA noerase []
t: ...
a: (~like) I always liked the island. Thats why I took the Ionian there two and a half tousand years ago.
a: ( ~river ) Do you see me moving the waves of river Golo?
a: ( ~town ) I think, the most beautiful town of the island is Bonifacio. A wonderful combination of cliff-line and lagoon.
a: ( ~history) Who do you think you are? Napoleon?
When concepts will be expanded (There are only 10 rivers in ~river now),
his would be much more precise than our first approach.
All the best
Andreas
P.S.: I am quite sure that there are some little faults for example in my code,
but I am too snow-blind inside of my text to see them. Please correct me!
But I had to put a blank in < pattern>, because without it, the whole word
couldn’t be seen.