DataStructures Example - Drink Water

If our intent was to deliver an expository on the merits of drinking water,  we'd need data structures like...

 TEACH-ABOUT-DRINKING-WATER:

#

 the ACTION

(used by DAYDREAMER code)

 the SPEAK

(used by Pipeline/Messaging Nexus)

 HEAR/GRASP

(Cue system)

 the GOALS/RULES/FACTs

(used by PrologMUD code  (was previously GATE in Daydreamer))

MTRANS-get attention: YOU

"Hello ?you?"

 ACKN

  

MTRANS-introduce subject:DRINKING-WATER

 "there is a thing called drinking water"

 

 ACKN

  

MTRANS-QUERY-TOPIC-LIST

 "have you heard of it?"

 
MTRANS-GOAL goalOf(me,knowsAbout(you,tDRINKING-WATER)) 

I'd like to share that you knowing about drinking water is my goal/ My goal is for you to know about drinking water.

(for example:  MTRANS-GOAL goalOf(me,X) is "Id like to share that X is my goal.")

 ACKN

 interestOf(me,tDRINKING-WATER) 

drinking water is an interest of mine

MTRANS-BELIEF knowsAbout(me,tDRINKING-WATER)

 because i've learned a bit about it

 ACKN

  

"drinking water will give you sexy skin"

 ACKN

 [ now explain why the topic should be interesting ]  

                      RULES to make you BELIEVE :

knowsAbout(you,tDRINKING-WATER) ==> having(you,sexySkin).

knowsAbout(me,tDRINKING-WATER) ==> interestOf(me,tDRINKING-WATER)

You knowing about drinking water implies you having sexy skin. 

Me knowing about drinking water implies i have an interest in drinking water. 

 ACKN

 INSULT -  I think that you have a lack of it (sexy skin that is!) 

 

  RECEIVE-YES

BLAH BLAH BLAH  ... 

RECEIVE-YES -> goto 12

RECEIVE-NO ---> exit plan

 

l care about how you feel and this motivates me to tell you these things

 ACKN

  

 

thus am about to dominate this conversation by talking about drinking water

 ACKN

  

 

MTRANS-QUERY-PROPOSITION-ask-for-existing-knowledge-LevelDRINKING-WATER

 what you know about the benefits of drinking water?

 ACKN

  

 

"Do you want to have more energy from just simply using resources from around you?"

 ACKN

 MBUILD

 "its free?!"

  

 

MTRANS-QUERY-PROPOSITION-ask-for-existing-interest-Level DRINKING-WATER

 would you like to learn more than ziltz?

    

 

"what do you know about the benefits of water?"

  "would you like to learn more information?"

  

    

 

BLAH BLAH

    

 

would you like me to continue talking about drinking water?

    

 

MTRANS-RETURN-PROPOSITION

 Yes?

 The requirement is this can be encoded as  moves into a formal discourse representation logic that we can use a planner with.

References

Tags: LOGICMOO
Created by admin of logicmoo.org on 2021/02/04 14:09
     
Copywrite © 2020 LOGICMOO (Unless otherwise credited in page)