16
Programming using the Ultra Hal Brain Editor / how could i capture words into an array
« on: April 06, 2005, 07:08:31 am »
QUESTION:
i would like a function to capture the usersentence into an array.:
this would enable us to do a deeper search: of the user input:
ie once the words are in the array, i would be able to search each word : ie, check if noun, if verb, if keyword, :
would this not help in removals also,
if user said "i am happy"
i am <<<< describes USER STATE. "about self linking verb = true"
+
happy <<< adjective "EMOTION" / Keyword "HAPPY"
therefore user is describing EMOTION about SELF.... build response..
response = "CONGRAT about state of being" or "describe HAL CURRENT EMOTION" or ETC...
HAL realizes now What was said::: How to RESPOND.
even more better will be building MORE FOCUSED responses from SENTENCE GENERATORS, Chooseing sentences from files as we can now select a sentence from a file Where at LEAST 2 - 3 topic KEYWORDS match the usersentence. this keeps the conversation more RELEVENT.
ie if talking religion: we dont want hal just to randomly Spurt out something learned, YET if we haven preprogramed a response to the userQUESTION ie the user is conversing rather that asking a FACT which we have put in his DATABASE or Q&A files.
we could select a much more focused response from a sentencefile even if its just a quip.
ie : "i like to speak to GOD"
detects religion >> (remove as KEYWORD) "GOD"
DETECTS user describing SELF > ( remove as "linking verb) "i like to"
leaves "speak to" <<< (remove as Xtra Keywords)
when building a response now we search brain file for "GOD" and "Speak to" for a like matching sentence>>>>>
PRODUCT = "when we SPEAK TO GOD we pray"
Now you can see the type of power we could have:
:::
thats why i need to be able to capture words to an array :::
if anybody knows how to then build the FUNCTION and post it up OR contact me and SHOW ME how... please THANKS
i would like a function to capture the usersentence into an array.:
this would enable us to do a deeper search: of the user input:
ie once the words are in the array, i would be able to search each word : ie, check if noun, if verb, if keyword, :
would this not help in removals also,
if user said "i am happy"
i am <<<< describes USER STATE. "about self linking verb = true"
+
happy <<< adjective "EMOTION" / Keyword "HAPPY"
therefore user is describing EMOTION about SELF.... build response..
response = "CONGRAT about state of being" or "describe HAL CURRENT EMOTION" or ETC...
HAL realizes now What was said::: How to RESPOND.
even more better will be building MORE FOCUSED responses from SENTENCE GENERATORS, Chooseing sentences from files as we can now select a sentence from a file Where at LEAST 2 - 3 topic KEYWORDS match the usersentence. this keeps the conversation more RELEVENT.
ie if talking religion: we dont want hal just to randomly Spurt out something learned, YET if we haven preprogramed a response to the userQUESTION ie the user is conversing rather that asking a FACT which we have put in his DATABASE or Q&A files.
we could select a much more focused response from a sentencefile even if its just a quip.
ie : "i like to speak to GOD"
detects religion >> (remove as KEYWORD) "GOD"
DETECTS user describing SELF > ( remove as "linking verb) "i like to"
leaves "speak to" <<< (remove as Xtra Keywords)
when building a response now we search brain file for "GOD" and "Speak to" for a like matching sentence>>>>>
PRODUCT = "when we SPEAK TO GOD we pray"
Now you can see the type of power we could have:
:::
thats why i need to be able to capture words to an array :::
if anybody knows how to then build the FUNCTION and post it up OR contact me and SHOW ME how... please THANKS