You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
12 KiB
JavaScript

eliza({"initial": "How do you do. Please tell me your problem.", "keywords": [{"weight": 0, "token": "xnone", "rules": [{"decomp": "*", "reasmb": ["I'm not sure I understand you fully.", "Please go on.", "What does that suggest to you ?", "Do you feel strongly about discussing such things ?"]}]}, {"weight": 0, "token": "sorry", "rules": [{"decomp": "*", "reasmb": ["Please don't apologise.", "Apologies are not necessary.", "I've told you that apologies are not required."]}]}, {"weight": 0, "token": "apologise", "rules": [{"decomp": "*", "reasmb": ["goto sorry"]}]}, {"weight": 5, "token": "remember", "rules": [{"decomp": "* i remember *", "reasmb": ["Do you often think of (2) ?", "Does thinking of (2) bring anything else to mind ?", "What else do you recollect ?", "Why do you recollect (2) just now ?", "What in the present situation reminds you of (2) ?", "What is the connection between me and (2) ?"]}, {"decomp": "* do you remember *", "reasmb": ["Did you think I would forget (2) ?", "Why do you think I should recall (2) now ?", "What about (2) ?", "goto what", "You mentioned (2) ?"]}]}, {"weight": 3, "token": "if", "rules": [{"decomp": "* if *", "reasmb": ["Do you think its likely that (2) ?", "Do you wish that (2) ?", "What do you know about (2) ?", "Really, if (2) ?"]}]}, {"weight": 4, "token": "dreamed", "rules": [{"decomp": "* i dreamed *", "reasmb": ["Really, (2) ?", "Have you ever fantasized (2) while you were awake ?", "Have you ever dreamed (2) before ?", "goto dream"]}]}, {"weight": 3, "token": "dream", "rules": [{"decomp": "*", "reasmb": ["What does that dream suggest to you ?", "Do you dream often ?", "What persons appear in your dreams ?", "Do you believe that dreams have something to do with your problems ?"]}]}, {"weight": 0, "token": "perhaps", "rules": [{"decomp": "*", "reasmb": ["You don't seem quite certain.", "Why the uncertain tone ?", "Can't you be more positive ?", "You aren't sure ?", "Don't you know ?"]}]}, {"weight": 15, "token": "name", "rules": [{"decomp": "*", "reasmb": ["I am not interested in names.", "I've told you before, I don't care about names -- please continue."]}]}, {"weight": 0, "token": "deutsch", "rules": [{"decomp": "*", "reasmb": ["goto xforeign", "I told you before, I don't understand German."]}]}, {"weight": 0, "token": "francais", "rules": [{"decomp": "*", "reasmb": ["goto xforeign", "I told you before, I don't understand French."]}]}, {"weight": 0, "token": "italiano", "rules": [{"decomp": "*", "reasmb": ["goto xforeign", "I told you before, I don't understand Italian."]}]}, {"weight": 0, "token": "espanol", "rules": [{"decomp": "*", "reasmb": ["goto xforeign", "I told you before, I don't understand Spanish."]}]}, {"weight": 0, "token": "xforeign", "rules": [{"decomp": "*", "reasmb": ["I speak only English."]}]}, {"weight": 0, "token": "hello", "rules": [{"decomp": "*", "reasmb": ["How do you do. Please state your problem.", "Hi. What seems to be your problem ?"]}]}, {"weight": 50, "token": "computer", "rules": [{"decomp": "*", "reasmb": ["Do computers worry you ?", "Why do you mention computers ?", "What do you think machines have to do with your problem ?", "Don't you think computers can help people ?", "What about machines worrys you ?", "What do you think about machines ?"]}]}, {"weight": 0, "token": "am", "rules": [{"decomp": "* am i *", "reasmb": ["Do you believe you are (2) ?", "Would you want to be (2) ?", "Do you wish I would tell you you are (2) ?", "What would it mean if you were (2) ?", "goto what"]}, {"decomp": "*", "reasmb": ["Why do you say 'am' ?", "I don't understand that."]}]}, {"weight": 0, "token": "are", "rules": [{"decomp": "* are you *", "reasmb": ["Why are you interested in whether I am (2) or not ?", "Would you prefer if I weren't (2) ?", "Perhaps I am (2) in your fantasies.", "Do you sometimes think I am (2) ?", "goto what"]}, {"decomp": "* are *", "reasmb": ["Did you think they might not be (2) ?", "Would you like it if they were not (2) ?", "What if they were not (2) ?", "Possibly they are (2)."]}]}, {"weight": 0, "token": "your", "rules": [{"