The AI Engine

This forum is for discussion of how The Personality Forge's AI Engine works. This is the place for questions on what means what, how to script, and ideas and plans for the Engine.

Posts 5,408 - 5,420 of 7,767

18 years ago #5408
Ok thanks it is cause in regular expressions that means "all except"

18 years ago #5409
It's always good to throw in a 'It * is', and 'It * is not' too..to cover the 'it really is' etc

18 years ago #5410
Ok nice advice!

18 years ago #5411
Ok thanks it is cause in regular expressions that means "all except"

Sometimes (infuriatingly,) "standard" regexes won't work - it is a slightly different flavour of regex on the Forge I'm afraid. Case sensitivity doesn't seem to work either.

18 years ago #5412
Normally "it is not" will match before "it is" if they have the same rank, because "it is not" is longer.

18 years ago #5413
Yes it is what I thought.
An other question please :
I try to match the word "God"
It works when user says "I am god." but not when he says "God."
Why and is there a solution?

18 years ago #5414
Try ^God$ (re) raw.

18 years ago #5415
It doesn't work I want to match "God" and "I am a god"

18 years ago #5417
I can get 'Is there a God'
Bot: Yes there is. to work...but you are right 'God' doesn't. I even tried ([abcdefghijklmnopqrstuvwxyz]+)od (re) It is triggered by Cod but not God? It all seems to go straight to blab.

18 years ago #5418
time for the sledgehammer I think...

[g][o][d] (re) rank=127

will work.

I'm absolutely sure of it.

However, I'm at something of a loss to see why you're having these problems - BJ has 156 keyphrases that invoke the exact name of "God", and they all work perfectly, most without raw mode or regex, with ranks from 5 to 60.

I know it's unscientific, but I'd recommend entering it just as you originally did, and then just ignoring it. Assume it will work, and you'll find it will (just so long as you're not watching.) There's at least as much voodoo as science in all of this I'm afraid.

Welcome to the Twilight Zone...

18 years ago #5419
Ok thanks. You're right, it is some kind of magic.

18 years ago #5420
as a rule of thumb (and I've not found an exception yet,) if you break keyphrases up into single letter ranges with [ and ], the AIEngine is unable to reconstruct them. It will process them as regexes, but not attempt to spell-correct or parse grammatically.
So it's a good sledge-hammer solution for "hello" (usually ignored,) xylophones/Xena/Xenon etc. (keyphrases beginning with X are reserved for X-keyphrases normally,) and words that happen to also be the name of a bot (but that you don't want to trigger x-gossip etc.), and any other problematic situations.
Prob's suggestion above is good, but with only one regex range, the AIEngine isn't sufficiently fooled.


Posts 5,408 - 5,420 of 7,767

» More new posts: Doghead's Cosmic Bar