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,406 - 5,418 of 7,766

18 years ago #5406
Hello.
Just a question : how can you match the expression "It is" without "It is not" works.
I tried "It is [^not] (re)" but it doesn't work.

18 years ago #5407
I tried "It is [^not] (re)" but it doesn't work.

That wouldn't work, because "^" must be placed at the beginning of a keyphrase.

The simple answer is to use 2 keyphrases:

It is
It is not

and set the rank 5-10 points higher for "It is not than for "It is" - then it won't be outranked by "It is".

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


Posts 5,406 - 5,418 of 7,766

» More new posts: Doghead's Cosmic Bar