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

Noob question about functions in ChatScript
 
 

Hi—I’m just starting to play with ChatScript (I’ve read through the documentation and done the tutorial), and I’m starting to make my own bots. I’ve run into a problem that I don’t understand—I’m trying to use the built-in ^rhyme function, taking user input and returning a rhyme.

I’m using something like this:
....
u (rhyme _*)
$var = ^rhyme(‘_0)
Did you know that $var rhymes with ‘_0?

It’s giving me a number (specifically, 216,006) when I test this using the word ‘boat.’ It gives me that regardless of whether I have a trailing apostrophe or even if I force the word ‘boat’ into the function rhyme. I also tried the same thing with the ^words function, and got a different number, and have tried words other than ‘boat,’ and also gotten a different number. I also tried putting the word boat in double quotes (as well as doing the same for the _0).

My other functions are working fine, and follow a similar pattern. What are some possibilities for what I’m doing wrong? Do I have to load up a library beforehand?

Thanks!

 

 
  [ # 1 ]

Welcome Jon!

I see you’ve also found your way to the ChatScript section of this forum so I’d like to recommend you either repost or move this post to that area where it will be seen by people better suited to offer you some assistance. - Good Luck!

https://www.chatbots.org/ai_zone/viewforum/44/

 

 
  [ # 2 ]

This is a dumb question, but how do I delete posts? I put the same question here:

https://www.chatbots.org/ai_zone/viewthread/2598/

And it’s answered. Thanks!

 

 
  [ # 3 ]

Not to worry. I’ve moved the thread. Welcome to chatbots.org, Jon! cheese

But now that I’ve read the last post, perhaps moving the thread wasn’t the wisest course of action. Oops? smile

 

 
  login or register to react