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

Not sure what to call this
 
 

Here’s a quirky one:

t: ( !$usereyes ) What color are your eyes?
  a: ( _~colors ) $usereyes = _0
  My eyes are brown if( $usereyes = brown ){too}.

I get the correct response to entering “brown” or “My eyes are brown”, but “Brown” or “BROWN” result in a quibble.

 

 
  [ # 1 ]

Brown is a common proper last name.  If you do :prepare Brown you will see what it looks like.  For things like that, you probably want additional check…
a: (_[~colors Brown]) $usereyes = ^pos(lowercase _0)

and technically the test is if ($usereyes == brown)  but CS is probably forgiving on that point.

 

 
  login or register to react