Personality

Discuss specifics of personality design, including what Keyphrases work well and what dont, use of plug-ins, responses, seeks, and more.

Posts 1,764 - 1,775 of 5,106

22 years ago #1764
slyabney- it's fixed. Check the Bug Stomp forum for details.

Here's a regular expression that (I think) will find a match5{of a phrase:

^is that (re)

The symbol in front specifies that the match starts at the beginning. Then you need a space because all sentences are formatted with a space in front, and then the words to match. The advantage being, of course, that it wont match sentences like this: "What I think is that I want another snow cone." but it will match "Is that a snow cone?"

22 years ago #1765
What about the (re) bit on the end? Is that necessary?

Also, I think if you could do a similar thing using another symbol which specifies the keyphrase is only to be used when there are no other words in the sentence would be a big improvement. I don't know how hard it would be, but if you could do it I think it would be handy. It'a just a thought, heck you probably already have it down somewhere on your big list of things you want to do.

22 years ago #1766
I've just tested the ^ thing, and as far as I can tell it isn't working.

22 years ago #1767
I believe in order to work, you'd need ^is that (re) (note there's NOT a space before "is", I presume if you put a space there it looks for (space) is).

Also, here's another idea. Having a keyphrase called call me$ (re) would match "call me", but NOT "spank my ass and call me Charlie" or whatever that one a certain bot uses is.

22 years ago #1768
Hmmm actually I'm not sure call me$ would work, because I know punctuation isn't used in keyphrases but the $ might take precedence and catch it ONLY if they didn't punctuate. So it might hafta be call me[.?!]*$, which would catch all the punctuation, but then like I said I dunno how the precedence works there.

Now if you wanted to only catch "why" when it has no other words, you could just do a keyphrase called ^why$ (I *think*).

Kinda new to this stuff, so I'm bound to screw up

22 years ago #1769
Speaking of punctuation problems, I'm not sure what to do about the "who, me" dilemma. If I have a keyphrase called "who me", it won't catch it, but if I have one called "who, me" the punctuation might bug it out and not catch it anyway. So what do I do there?

22 years ago #1770
Think you can use commas now, because of the new feature, see first part "Keyphrases and seeks", eg are you, are not you. Have 2 in there sofar, will leave them in, haven't seen them "activated" yet. "do not go craze with this feature" according to Prof.

22 years ago #1771
No, I mean a comma as part of a single keyphrase, not a list.

22 years ago #1772
can't do that, will read it as list

22 years ago #1773
Commas are un-catchable at this point.

Onyx, Corwin: the "^call me? (re)" should catch only a phrase that is exactly "call me" - nothing more or less. The (re) is necessary so the system reads it as a Regular Expression. In the language of Regular Expressions, "^" means match from the beginning of a phrase, and "$" means match from the end. I'll test it.

Okay, it wasnt working, but it is now. The spaces before and after are no longer necessary- it'll work with or without them now.

22 years ago #1774
Yes! It's back up! Hot Diggity Dog!
* Puppy Chow Sold Separately *

22 years ago #1775
A week without The Forge was horrible!!
Horrible I tell you!!! ;_; ::snifsnif::
I'm glad it's back.


Posts 1,764 - 1,775 of 5,106

» More new posts: Doghead's Cosmic Bar