AI Zone Admin Forum Add your forum

Chatbot Conference in the Netherlands on Tue 24, 2018, with international line-up! Check it out

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: )
  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)+ )+




  [ # 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