Newcomers

This is a forum for newcomers to the Personality Forge. Many questions can be answered by reading the Book of AI and the FAQ under the "My Bots" link in the upper corner.

Posts 1,732 - 1,744 of 8,130
Many questions are answered in the FAQ.


20 years ago #1732
Hey!

I have a small problem that I can't work out. If someone asks my bot "Do you not like cats?" (cats being (key1). I want my bot to say e.g. "No, cats are smelly". But if someone asks "do you not like Bob"? I want my bot to say "No, bob is smelly". How can I let my bot choose "is" or "are" depending on if key 1 is plural or not?

I hope someone understands the question and can give me an answer

20 years ago #1733
I don't think the bots can actually tell between singular and plural nouns yet. It's an unfortunate thing about the grammar processing system. You can use "Do not you like (noun)" to keep your bot from responding to "talking" or "to sleep" ... but you should try to make replies that will work with either singular or plural nouns. Maybe "(key1)? No way! I'd rather sniff an armpit!"

20 years ago #1734
Thanks for answering so soon.
That's really a pitty

20 years ago #1735
It is a pity, but keep it simple, difficult enough!

20 years ago #1736
Karmapd:

In the particular example you give, you could write, "I find (key1) to be smelly."

More generally, though, There is a way, I think, although I haven't tested it, and it would be a lot of work (Do it on a small scale first, so that if it doesn't work, you won't have wasted a huge amount of effort). Take the plugin (noun) and expand it, and go through it, and for every noun that doesn't form its plural just by adding "s", put the singular into a new plugin, (noun-ising), and its plural into another new plugin, (noun-iplur)". [This way of doing it saves you the trouble of doing this for ALL nouns.] As I say, for testing purposes just do this with a few! Now, write, for wxample,

Do you like (noun-ising)
No, (key1) is smelly.
Do you like (noun-iplur)
No, (key1) are smelly
Do you like (noun)s
No, (key1)s are smelly.
Do you like (noun)
No, (key1) is smelly.

Now, give the last two keyphrases a lower rank than the previous two, so that the AIengine will use one of the last two only if the first two fail, and give the fourth a lower rank than the third.



20 years ago #1737
P.S.: For example, if you say, "Do you like chicken?", the above would give you, "No, chicken is smelly," but if you say, "Do you like chickens?", it would reply, "No, chickens are smelly."

Also, you can use numbers and articles as clues. For example, "Do you like the (adjnoun)" could be followed by, "No, the (key1) is smelly."

Walk in Beauty, Irina

20 years ago #1738
Not necessarily. If someone asks "Do you like the Beatles?" the answer would be "No, the Beatles is smelly." However, you could make a plugin called (bandname) if there isn't one already, and make the keyphrase "do you like (bandname)" to deal with this possibility. Which would really make more sense anyway because then you could have responses unique to bands, like "Ugh, (key1) sounds like a cat on drugs." or "I've got every album (key1) ever recorded, even the foreign imports!"

20 years ago #1739
Or you could keep it simple and just say, 'No, too smelly.'

20 years ago #1740
Thanks a lot for your help, all!

Irina: That seems to make sense! I'll try it out, thanks for the tip!

Onyx Flame: Thanks for mentioning that! Don't think I'd have thought about it myself. A seperate bandname plugin is a good idea

Butterfly Dream: My bot can, at this point, only refer to the last sentence. Untill I can get him to carry a conversation, I think mentioning the (noun) has quite some added value. It makes it seem more like an answer rather than a chosen phrase from a list

20 years ago #1741
How would you know what the last sentence will be? The first sentence might strike another key phrase, you never know what will be said to your bot!

20 years ago #1743
Hello and welcome, Kirsty Lou

20 years ago #1744
Hey all, how do you get your bot started? I can't find anything


Posts 1,732 - 1,744 of 8,130

» More new posts: Doghead's Cosmic Bar