SIML Code
<Model>
<Pattern>* is reading *</Pattern>
<Response>
<Learn>
<Model>
<Pattern>what is <Process><Match /></Process> reading</Pattern>
<Response><Process><Match /></Process> is reading <Process><Match Index="2"/></Process></Response>
</Model>
</Learn>
</Response>
</Model>
Look at the code above.The function of it is simple, but effect would be:
Code: Select all
I: Stefan is reading books.
Bot: (cuz no response generated, doesn't matter now)
I: Stefan is reading newspapers.
Bot: (cuz no response generated, doesn't matter now)
I: What is Stefan reading?
Bot: Stefan is reading books.

Also, the cool feature would be to overwrite learned model:
Code: Select all
I: Stefan is reading books.
Bot: (cuz no response generated, doesn't matter now)
I: Stefan is reading newspapers.
Bot: (cuz no response generated, doesn't matter now)
I: What is Stefan reading?
Bot: Stefan is reading newspapers.

And the option to forget Pattern.
Let's say:
SIML Code
<forget>What is Stefan reading</forget>
bah.. done.another good and useful tool will be the ability to conditional test if a pattern exists
SIML Code
<Response><If Pattern="What is Stefan reading" Exists="True"></If></Response>