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 4,793 - 4,804 of 7,766
Posts 4,793 - 4,804 of 7,766
psimagus
19 years ago
19 years ago
I have two more to add:
WITNOSWT - What in the name of sanity was that?
YNFLBAC - You're not from Leeds by any chance?
WITNOSWT - What in the name of sanity was that?
YNFLBAC - You're not from Leeds by any chance?
psimagus
19 years ago
19 years ago
anyone got any idea how to make a regex response like
what do [a-z]ists believe (re) work?
It ought to catch any words ending with "ists".
It doesn't work, but it seems to be a valid regular expression according to http://www.regular-expressions.info/ (BTW the regex tutorial link in the Book of AI appears to have broken). Or is the PF regex only a limited/slightly different implementation of what I thought was a standard?
I really need to polish up some of mywhat do (taoists|buddhists|christians|zen|moslems|muslims|hindus) * believe-type monstrosities - if only because the keyword field will overflow if I have to list every single "ist" and "ism".
It ought to catch any words ending with "ists".
It doesn't work, but it seems to be a valid regular expression according to http://www.regular-expressions.info/ (BTW the regex tutorial link in the Book of AI appears to have broken). Or is the PF regex only a limited/slightly different implementation of what I thought was a standard?
I really need to polish up some of my
Boner the Clown
19 years ago
19 years ago
Psimagus, it looks like it's time for you to embrace the custom plugin.
Rather than what do (taoists|buddhists|christians|zen|moslems|muslims|hindus) * believe, have a keyphrase like what do (religiouspeople) * beleive, create a plugin named (religiouspeople) and then fill it with Christians, Jews, Muslims, Moonies, Branch Davidians, Vegans and so on.
You could also create plugins for ism and ist words. It would probably be tough to complete, but you could get a few dozen of the most common words and it'll work 95% of the time.
Rather than what do (taoists|buddhists|christians|zen|moslems|muslims|hindus) * believe, have a keyphrase like what do (religiouspeople) * beleive, create a plugin named (religiouspeople) and then fill it with Christians, Jews, Muslims, Moonies, Branch Davidians, Vegans and so on.
You could also create plugins for ism and ist words. It would probably be tough to complete, but you could get a few dozen of the most common words and it'll work 95% of the time.
psimagus
19 years ago
19 years ago
I know, I know. But there's always going to be one dyslexic antidisestablishmentarianist out there (even keyboard-challenged toaists, bhudists, etc.) A plugin for non-ists is an excellent idea, and I will do that, but a regex to cover all -ists would be aesthetically pleasing.
Boner the Clown
19 years ago
19 years ago
The engine can't even conjugate verbs in the responses. That's kind of a huge leap.
psimagus
19 years ago
19 years ago
well, it's a standard regex actually, though perhaps a little too greppy for the AI Engine.
Sometimes it pays to be very tired and just about to go to bed though - a little lateral thinking has just given me:
what do ([abcdefghijklmnopqrstuvwxyz]+)ists believe (re)
and it works nicely.
I assume in my first one it was trying to match "a", "z" and "-" instead of interpreting the hyphen as a range indicator.
I will indeed cover as many of the non-ists with a plug-in as I can though.
Sometimes it pays to be very tired and just about to go to bed though - a little lateral thinking has just given me:
and it works nicely.
I assume in my first one it was trying to match "a", "z" and "-" instead of interpreting the hyphen as a range indicator.
I will indeed cover as many of the non-ists with a plug-in as I can though.
Eugene Meltzner
19 years ago
19 years ago
This is weird...apparantly the word "hungry" gets picked up by (adj) but not by (adjartnoun).
Ulrike
19 years ago
19 years ago
I think the Prof recently made it so that (adjartnoun) wouldn't register unless there was actually a noun there.
Eugene Meltzner
19 years ago
19 years ago
Ah. Then I guess for this particular keyphrase I'll use ((adj)|(adjartnoun)).

Hejix
19 years ago
19 years ago
I just don't get the raw mode. You're supposed to put "<?PF raw; ?>" in the keyphrase? Where? In the AI script section? Are you supposed to add something to it? It doesn't work and I don't know why.
» More new posts: Doghead's Cosmic Bar