Capture "[rel1=\b(rel)\b]" and output

Request new Verbot® features.

Moderator: Staff

Capture "[rel1=\b(rel)\b]" and output

Postby leseur sylvain » Mon Apr 03, 2006 12:10 pm

Rule Name: AAAA is a [horse]
Input Text: AAAA is a [horse]
Output Text: The same, i like <mem.set [horse] yes>

Rule Name: Is AAAA [horse]?
Input Text: Is AAAA [horse]?
Output Text: [[horse]:Non non non!]

This little code works ok. But i can't use:
"[rel1=\b(rel)\b]" var instead [horse].
Maybe because "\b" or else?...
In fact " [rel1=\b(rel)\b] " don't works inside an output, like
it don't works inside a condition. I will be very convenient to
get this possibility ([rel1=\b(rel)\b] works both in output and
condition).
Why that works inside input and not inside output? The same for
synonym inside condition, i can't use synonym in condition!...

Friendly
Sylvain
leseur sylvain
OmnipotentBot
OmnipotentBot
 
Posts: 1677
Joined: Mon Nov 08, 2004 4:53 pm
Location: Suburb of Paris France

Postby Matt » Mon Apr 03, 2006 4:53 pm

That [cap=\b(syn)\b] syntax is only for matching with synonyms on an input, this doesn't really work or make sense for outputs or conditions.
Matt
OmnipotentBot
OmnipotentBot
 
Posts: 2079
Joined: Thu Feb 26, 2004 10:48 pm
Location: Calabasas, CA

Postby leseur sylvain » Mon Apr 03, 2006 5:08 pm

????
We can see "That [cap=\b(syn)\b] syntax" like a groupe of a lot of
vars who are synonym, touse for a moods, opinion etc. Easy to
use because it works like a .vsn file.
A kind of .vsn file but for Vars.
If i say
-Verbot give me the vars who have value "X"
Verbot, with in the output "[X=\b(X)\b]" can list for me all the vars
i need.. No?
Friendly
Sylvain
leseur sylvain
OmnipotentBot
OmnipotentBot
 
Posts: 1677
Joined: Mon Nov 08, 2004 4:53 pm
Location: Suburb of Paris France

Postby Matt » Mon Apr 03, 2006 5:49 pm

I see how you would like to use it, I suppose that's possible for it to work like that, It maybe better to just somehow allow the scripter to be able to get at the synonyms in code or whatever so you could do this kinda thing (or whatever else you wanted) yourself.
Matt
OmnipotentBot
OmnipotentBot
 
Posts: 2079
Joined: Thu Feb 26, 2004 10:48 pm
Location: Calabasas, CA

Postby leseur sylvain » Tue Apr 04, 2006 7:44 am

Matt, it's not a so ridiculous idea. To try to convince you:
Ex: A Synonym file with "_X_" = Blackbird, pinch mark, ostrich etc

For condition a kind of sorting/crossover like this kind of input
or output code vars:
vars["_X_=\b(_X_)\b"] == "true"
Who allow to use all "_X_" (meaning/equal to true or anything else).
Esay to use, easy to build, it's a .vsn file.

Ex conversation:
Verbot Is a ["_X_=\b(_X_)\b"] made of wood?
Me: No, impossible (with output<mem.set ["_X_=\b(_X_)\b"] no_wood>)

Now Verbot know all ["_X_=\b(_X_)\b"] equal to "no_wood"

Later
Me: Is ["_X_=\b(_X_)\b"] made of wood?
Verbot: No idiot, it's impossible, because var ["_X_=\b(_X_)\b"] =
no_wood...

2 or 3 rules no more. (I know, it's schematic/oversimplified)
Induction/generalization/deduction are possible. It's worth trying,
sure!
The same kind of behavior/possibilities if i use ["_X_=\b(_X_)\b"]
inside an output.


An oher question. What's the difference between input, output, learn,
and condition? Why the 4 have not the same possibilities? It is only
to be expected that the 4 have the same possibilities, no? I can
understand it's not so easy...

Very friendly
Sylvain.
leseur sylvain
OmnipotentBot
OmnipotentBot
 
Posts: 1677
Joined: Mon Nov 08, 2004 4:53 pm
Location: Suburb of Paris France

Postby leseur sylvain » Wed Apr 05, 2006 6:06 pm

Do you think it's conceivable?
Friendly
Sylvain
leseur sylvain
OmnipotentBot
OmnipotentBot
 
Posts: 1677
Joined: Mon Nov 08, 2004 4:53 pm
Location: Suburb of Paris France

Postby Matt » Wed Apr 05, 2006 6:09 pm

I think I see what you mean, but I'm still convinced that we could instead just allow access to the synonyms from C# code and you could do this type of thing with a code module, this way makes more sense to me because it seems like such a specialized behavior to make a standard feature.
Matt
OmnipotentBot
OmnipotentBot
 
Posts: 2079
Joined: Thu Feb 26, 2004 10:48 pm
Location: Calabasas, CA

Postby leseur sylvain » Thu Apr 06, 2006 12:14 pm

... Ok thanks Matt.
It's easy for everybody to use ["_X_=\b(_X_)\b"] code, not to
use module C# code. Who here know C# and have time to learn it?...

How to build with Code Module C# ? (of course if you have time, if
you wish, if, if... It seems so easy for you!):

"I like my daugther Caroline, it's a child, she's 12 years old, brown
hair and she like his dolly"

Affirmations.
-All persons with 12 years old are children. (yes because Caroline is
a child)
-Little girls like dolly. (yes because Caro is a girl and child)
-All little girls have brown hair (yes because Caro is a girl)
-12 years old is a "young age". (yes because Caro is a child)

Deductions in general:
Little girls, can like dolly, can have brown hair, i like all children

Deductions Caroline special case:
like dolly, brown hair, child, i like Caro

If, brown hair,12 years, like dolly etc
There is a big chance of i'am speaking about Caroline

Question:
-Does i like all children? (yes because i like caroline who is a child)
-Does all little girls like dolly (yes).
-Does little boys like dolly? (i don't know)
-Does all children have brown hair? (not sure)

Etc, it's just an easy example.
With conditions and synonyms ["_X_=\b(_X_)\b"] i think i'm able to
build this (in fact i leave because i can use this code in condition)
but with Code Module C# Ed nada

If you have time to give us examples of this kind of Module Code...
I'm sure all the galaxy will thank you, and be sure too i don't keep
that in my little corner, egoistically only for me, you 'll see
samples i built in the ScriptingTutorialX i'm actually build for
the community. This word for me have really a sens/signification.

Thanks Matt
Very friendly and thanks for you patience.
Sylvain
leseur sylvain
OmnipotentBot
OmnipotentBot
 
Posts: 1677
Joined: Mon Nov 08, 2004 4:53 pm
Location: Suburb of Paris France


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 0 guests