Author Topic: ok heres another lightspeed idea !!  (Read 2370 times)

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
ok heres another lightspeed idea !!
« on: January 12, 2008, 05:04:42 pm »
lol ! just when you thought you heard them all eh... well heres my idea while driving down the road this evening it came to me that it would be cool if their was an area in the hal brain edit like the response area that you could type in a word say "i " click for hal response " and would say " you " .
    this would be to show you what words that you say would look like if hal responds back (how hal would say it back ) example i went to the store ( hal would show " you went to the store ) and other words like me , etc. this would help people to know how to word some things and hal to show them what the results would be so they know wheather to write it that way  to hal .
[:)] any way just an idea for maybe some future hal version if possible . [:)]
 

onthecuttingedge2005

  • Guest
ok heres another lightspeed idea !!
« Reply #1 on: January 12, 2008, 08:32:07 pm »
Hi lightspeed.

that's an easy one.

GetResponse = UserSentence

UserSentence will be reversed person, you could use it for debugging.

Jerry[8D]

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
ok heres another lightspeed idea !!
« Reply #2 on: January 13, 2008, 08:13:34 am »
hi jerry , well that would make a good plug in or program in general because it would not only help in general but would help any new people to hal . [:D]
 

onthecuttingedge2005

  • Guest
ok heres another lightspeed idea !!
« Reply #3 on: January 13, 2008, 10:39:09 am »
Hi lightspeed.

you can copy and paste this code into notepad and save it as a .vbs file to your desktop, this vbs file when you click on it will reverse whatever string you input to reverse person.

Code: [Select]

Set HalBrain = CreateObject("UltraHalAsst.Brain")
 
MyString = InputBox("", "Reverse Person", "type something here for reverse person")

    'PROCESS: REMOVE PUNCTUATION
    'This function removes all punctuation and symbols from the User's
    'sentence so they won't confuse Hal during processing.
    MyString = HalBrain.AlphaNumericalOnly(MyString)
   
    MyString = Trim(MyString)

    MyString = " " & MyString & " "

    'PROCESS: MODIFY SENTENCE
    'The function, HalFormat, from the ActiveX DLL corrects many common
    'typos and chat shortcuts. Example:  "U R Cool" becomes "You are
    'cool." It also fixes a few grammatical errors.
    MyString = HalBrain.HalFormat(MyString)

    'PROCESS: REVERSE PERSON
    'This function reverses first and second person pronouns. Example:
    'The user's statement "You are cool" becomes Hal's statement "I am
    'cool."  Keep this is mind and don't get confused. When we are in
    'Hal's brain; In the databases, "I" refers to Hal and in the
    'databases, "you" refers to the user. This is true whenever we are
    'dealing with a user response "processed" by Hal's brain.
    MyString = HalBrain.SwitchPerson(MyString)

    'PROCESS: MODIFY SENTENCE
    'We now must run HalFormat again, to fix some grammatical errors
    'the switch person above might have caused. Example: If the
    'original sentence was "How are you"; after the function above it
    'became "How are me" which is grammatically wrong. This will fix
    'it to "How am I"
    'NOTE TO DEVELOPERS: An especially important function performed by
    'HalFormat is the removal of extra empty spaces in a sentence
    'which may have been caused by other processing. For this reason,
    'use Halformat closely before any "Len" comparison in which the
    'counting of characters must be accurate.
    MyString = HalBrain.HalFormat(MyString)

    'PROCESS: CHANGE TO ALL CAPS
    'Next, we captitalize the entire sentence for easy comparison.
    'Almost all of Hal's thinking is done in caps.
    MyString = UCase(MyString)

MsgBox MyString



Jerry[8D]