AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Support for Matching of Literal Symbols
 
 

Hi everyone,
I am new here and am trying to build a dialog system with the main scripting language being ChatScript. Is it possible to match literal symbols such as “[”, “]”, and “%”?

For example, how can I match the following input:

[H] I am feeling fine 

The reason I want to do this is to pass “flags” along with the input, which in turn can affect the output.

Regards,
Darren

 

 
  [ # 1 ]

For matching characters used by the system (and for outputting), one would use the backslash to mean literal next.
E.g.

( \[ H \] I am feeling fine ) 

though I would immediately generalize am to “be”  so it would also match I was feeling fine
and feeling to feel and then allow be to be optional so it can match I feel fine

( \[ H \] I {be} feel fine )

or
( \[ H \] I {be} {feel} fine )
so it can match I fine   or I am fine   or I feel fine or I am feeling fine.

 

 
  [ # 2 ]

Thank you for the quick reply!

 

 
  login or register to react