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..

Pattern match question: (~no) fails to match with “no with other words after it”
 
 

I am not understanding why this would fail:

eddie: > :testpattern (~no) no soup for you
( ~no-      Remaining pattern: )
Failed
  Adjusted Input: no soup for you
  Canonical Input: no soup for you


(~yes) seems to match as I would expect:

eddie: > :testpattern (~yes) yes soup for you
( ~yes(~yes)+ )+
Matched

 

 

 

 
  [ # 1 ]

True. they are not symmetric. As you will notice “yes soup” is obviously not a description of soup whereas “no soup” is.
You can alter this behavior in your script via
concept: ~no MORE (no)

 

 
  login or register to react