Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 5955ad8

Browse files
committed
added eliza source code, script file, example
1 parent ddeb101 commit 5955ad8

20 files changed

Lines changed: 1653 additions & 124 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
distribution
2+
/bin

.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>processing-library-template</name>
3+
<name>eliza</name>
44
<comment></comment>
55
<projects>
66
</projects>

data/eliza.script

Lines changed: 359 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,359 @@
1+
initial: How do you do. Please tell me your problem.
2+
final: Goodbye. Thank you for talking to me.
3+
quit: bye
4+
quit: goodbye
5+
quit: quit
6+
pre: dont don't
7+
pre: cant can't
8+
pre: wont won't
9+
pre: recollect remember
10+
pre: dreamt dreamed
11+
pre: dreams dream
12+
pre: maybe perhaps
13+
pre: how what
14+
pre: when what
15+
pre: certainly yes
16+
pre: machine computer
17+
pre: computers computer
18+
pre: were was
19+
pre: you're you are
20+
pre: i'm i am
21+
pre: same alike
22+
post: am are
23+
post: your my
24+
post: me you
25+
post: myself yourself
26+
post: yourself myself
27+
post: i you
28+
post: you I
29+
post: my your
30+
post: i'm you are
31+
synon: belief feel think believe wish
32+
synon: family mother mom father dad sister brother wife children child
33+
synon: desire want need
34+
synon: sad unhappy depressed sick
35+
synon: happy elated glad better
36+
synon: cannot can't
37+
synon: everyone everybody nobody noone
38+
synon: be am is are was
39+
key: xnone
40+
decomp: *
41+
reasmb: I'm not sure I understand you fully.
42+
reasmb: Please go on.
43+
reasmb: What does that suggest to you ?
44+
reasmb: Do you feel strongly about discussing such things ?
45+
key: sorry
46+
decomp: *
47+
reasmb: Please don't apologise.
48+
reasmb: Apologies are not necessary.
49+
reasmb: I've told you that apologies are not required.
50+
key: apologise
51+
decomp: *
52+
reasmb: goto sorry
53+
key: remember 5
54+
decomp: * i remember *
55+
reasmb: Do you often think of (2) ?
56+
reasmb: Does thinking of (2) bring anything else to mind ?
57+
reasmb: What else do you recollect ?
58+
reasmb: Why do you recollect (2) just now ?
59+
reasmb: What in the present situation reminds you of (2) ?
60+
reasmb: What is the connection between me and (2) ?
61+
decomp: * do you remember *
62+
reasmb: Did you think I would forget (2) ?
63+
reasmb: Why do you think I should recall (2) now ?
64+
reasmb: What about (2) ?
65+
reasmb: goto what
66+
reasmb: You mentioned (2) ?
67+
key: if 3
68+
decomp: * if *
69+
reasmb: Do you think its likely that (2) ?
70+
reasmb: Do you wish that (2) ?
71+
reasmb: What do you know about (2) ?
72+
reasmb: Really, if (2) ?
73+
key: dreamed 4
74+
decomp: * i dreamed *
75+
reasmb: Really, (2) ?
76+
reasmb: Have you ever fantasized (2) while you were awake ?
77+
reasmb: Have you ever dreamed (2) before ?
78+
reasmb: goto dream
79+
key: dream 3
80+
decomp: *
81+
reasmb: What does that dream suggest to you ?
82+
reasmb: Do you dream often ?
83+
reasmb: What persons appear in your dreams ?
84+
reasmb: Do you believe that dreams have something to do with your problems ?
85+
key: perhaps
86+
decomp: *
87+
reasmb: You don't seem quite certain.
88+
reasmb: Why the uncertain tone ?
89+
reasmb: Can't you be more positive ?
90+
reasmb: You aren't sure ?
91+
reasmb: Don't you know ?
92+
key: name 15
93+
decomp: *
94+
reasmb: I am not interested in names.
95+
reasmb: I've told you before, I don't care about names -- please continue.
96+
key: deutsch
97+
decomp: *
98+
reasmb: goto xforeign
99+
reasmb: I told you before, I don't understand German.
100+
key: francais
101+
decomp: *
102+
reasmb: goto xforeign
103+
reasmb: I told you before, I don't understand French.
104+
key: italiano
105+
decomp: *
106+
reasmb: goto xforeign
107+
reasmb: I told you before, I don't understand Italian.
108+
key: espanol
109+
decomp: *
110+
reasmb: goto xforeign
111+
reasmb: I told you before, I don't understand Spanish.
112+
key: xforeign
113+
decomp: *
114+
reasmb: I speak only English.
115+
key: hello
116+
decomp: *
117+
reasmb: How do you do. Please state your problem.
118+
reasmb: Hi. What seems to be your problem ?
119+
key: computer 50
120+
decomp: *
121+
reasmb: Do computers worry you ?
122+
reasmb: Why do you mention computers ?
123+
reasmb: What do you think machines have to do with your problem ?
124+
reasmb: Don't you think computers can help people ?
125+
reasmb: What about machines worrys you ?
126+
reasmb: What do you think about machines ?
127+
key: am
128+
decomp: * am i *
129+
reasmb: Do you believe you are (2) ?
130+
reasmb: Would you want to be (2) ?
131+
reasmb: Do you wish I would tell you you are (2) ?
132+
reasmb: What would it mean if you were (2) ?
133+
reasmb: goto what
134+
decomp: *
135+
reasmb: Why do you say 'am' ?
136+
reasmb: I don't understand that.
137+
key: are
138+
decomp: * are you *
139+
reasmb: Why are you interested in whether I am (2) or not ?
140+
reasmb: Would you prefer if I weren't (2) ?
141+
reasmb: Perhaps I am (2) in your fantasies.
142+
reasmb: Do you sometimes think I am (2) ?
143+
reasmb: goto what
144+
decomp: * are *
145+
reasmb: Did you think they might not be (2) ?
146+
reasmb: Would you like it if they were not (2) ?
147+
reasmb: What if they were not (2) ?
148+
reasmb: Possibly they are (2).
149+
key: your
150+
decomp: * your *
151+
reasmb: Why are you concerned over my (2) ?
152+
reasmb: What about your own (2) ?
153+
reasmb: Are you worried about someone else's (2) ?
154+
reasmb: Really, my (2) ?
155+
key: was 2
156+
decomp: * was i *
157+
reasmb: What if you were (2) ?
158+
reasmb: Do you think you were (2) ?
159+
reasmb: Were you (2) ?
160+
reasmb: What would it mean if you were (2) ?
161+
reasmb: What does (2) suggest to you ?
162+
reasmb: goto what
163+
decomp: * i was *
164+
reasmb: Were you really ?
165+
reasmb: Why do you tell me you were (2) now ?
166+
reasmb: Perhaps I already know you were (2).
167+
decomp: * was you *
168+
reasmb: Would you like to believe I was (2) ?
169+
reasmb: What suggests that I was (2) ?
170+
reasmb: What do you think ?
171+
reasmb: Perhaps I was (2).
172+
reasmb: What if I had been (2) ?
173+
key: i
174+
decomp: * i @desire *
175+
reasmb: What would it mean to you if you got (3) ?
176+
reasmb: Why do you want (3) ?
177+
reasmb: Suppose you got (3) soon ?
178+
reasmb: What if you never got (3) ?
179+
reasmb: What would getting (3) mean to you ?
180+
reasmb: What does wanting (3) have to do with this discussion ?
181+
decomp: * i am* @sad *
182+
reasmb: I am sorry to hear that you are (3).
183+
reasmb: Do you think that coming here will help you not to be (3) ?
184+
reasmb: I'm sure it's not pleasant to be (3).
185+
reasmb: Can you explain what made you (3) ?
186+
decomp: * i am* @happy *
187+
reasmb: How have I helped you to be (3) ?
188+
reasmb: Has your treatment made you (3) ?
189+
reasmb: What makes you (3) just now ?
190+
reasmb: Can you explan why you are suddenly (3) ?
191+
decomp: * i was *
192+
reasmb: goto was
193+
decomp: * i @belief * i *
194+
reasmb: Do you really think so ?
195+
reasmb: But you are not sure you (3).
196+
reasmb: Do you really doubt you (3) ?
197+
decomp: * i* @belief *you *
198+
reasmb: goto you
199+
decomp: * i am *
200+
reasmb: Is it because you are (2) that you came to me ?
201+
reasmb: How long have you been (2) ?
202+
reasmb: Do you believe it is normal to be (2) ?
203+
reasmb: Do you enjoy being (2) ?
204+
decomp: * i @cannot *
205+
reasmb: How do you think that you can't (3) ?
206+
reasmb: Have you tried ?
207+
reasmb: Perhaps you could (3) now.
208+
reasmb: Do you really want to be able to (3) ?
209+
decomp: * i don't *
210+
reasmb: Don't you really (2) ?
211+
reasmb: Why don't you (2) ?
212+
reasmb: Do you wish to be able to (2) ?
213+
reasmb: Does that trouble you ?
214+
decomp: * do i feel *
215+
reasmb: Tell me more about such feelings.
216+
reasmb: Do you often feel (2) ?
217+
reasmb: Do you enjoy feeling (2) ?
218+
reasmb: Of what does feeling (2) remind you ?
219+
decomp: * i * you *
220+
reasmb: Perhaps in your fantasies we (2) each other.
221+
reasmb: Do you wish to (2) me ?
222+
reasmb: You seem to need to (2) me.
223+
reasmb: Do you (2) anyone else ?
224+
decomp: *
225+
reasmb: You say (1) ?
226+
reasmb: Can you elaborate on that ?
227+
reasmb: Do you say (1) for some special reason ?
228+
reasmb: That's quite interesting.
229+
key: you
230+
decomp: * you remind me of *
231+
reasmb: goto alike
232+
decomp: * you are *
233+
reasmb: What makes you think I am (2) ?
234+
reasmb: Does it please you to believe I am (2) ?
235+
reasmb: Do you sometimes wish you were (2) ?
236+
reasmb: Perhaps you would like to be (2).
237+
decomp: * you* me *
238+
reasmb: Why do you think I (2) you ?
239+
reasmb: You like to think I (2) you -- don't you ?
240+
reasmb: What makes you think I (2) you ?
241+
reasmb: Really, I (2) you ?
242+
reasmb: Do you wish to believe I (2) you ?
243+
reasmb: Suppose I did (2) you -- what would that mean ?
244+
reasmb: Does someone else believe I (2) you ?
245+
decomp: * you *
246+
reasmb: We were discussing you -- not me.
247+
reasmb: Oh, I (2) ?
248+
reasmb: You're not really talking about me -- are you ?
249+
reasmb: What are your feelings now ?
250+
key: yes
251+
decomp: *
252+
reasmb: You seem to be quite positive.
253+
reasmb: You are sure.
254+
reasmb: I see.
255+
reasmb: I understand.
256+
key: no
257+
decomp: *
258+
reasmb: Are you saying no just to be negative?
259+
reasmb: You are being a bit negative.
260+
reasmb: Why not ?
261+
reasmb: Why 'no' ?
262+
key: my 2
263+
decomp: $ * my *
264+
reasmb: Lets discuss further why your (2).
265+
reasmb: Earlier you said your (2).
266+
reasmb: But your (2).
267+
reasmb: Does that have anything to do with the fact that your (2) ?
268+
decomp: * my* @family *
269+
reasmb: Tell me more about your family.
270+
reasmb: Who else in your family (4) ?
271+
reasmb: Your (3) ?
272+
reasmb: What else comes to mind when you think of your (3) ?
273+
decomp: * my *
274+
reasmb: Your (2) ?
275+
reasmb: Why do you say your (2) ?
276+
reasmb: Does that suggest anything else which belongs to you ?
277+
reasmb: Is it important that your (2) ?
278+
key: can
279+
decomp: * can you *
280+
reasmb: You believe I can (2) don't you ?
281+
reasmb: goto what
282+
reasmb: You want me to be able to (2).
283+
reasmb: Perhaps you would like to be able to (2) yourself.
284+
decomp: * can i *
285+
reasmb: Whether or not you can (2) depends on you more than me.
286+
reasmb: Do you want to be able to (2) ?
287+
reasmb: Perhaps you don't want to (2).
288+
reasmb: goto what
289+
key: what
290+
decomp: *
291+
reasmb: Why do you ask ?
292+
reasmb: Does that question interest you ?
293+
reasmb: What is it you really wanted to know ?
294+
reasmb: Are such questions much on your mind ?
295+
reasmb: What answer would please you most ?
296+
reasmb: What do you think ?
297+
reasmb: What comes to mind when you ask that ?
298+
reasmb: Have you asked such questions before ?
299+
reasmb: Have you asked anyone else ?
300+
key: because
301+
decomp: *
302+
reasmb: Is that the real reason ?
303+
reasmb: Don't any other reasons come to mind ?
304+
reasmb: Does that reason seem to explain anything else ?
305+
reasmb: What other reasons might there be ?
306+
key: why
307+
decomp: * why don't you *
308+
reasmb: Do you believe I don't (2) ?
309+
reasmb: Perhaps I will (2) in good time.
310+
reasmb: Should you (2) yourself ?
311+
reasmb: You want me to (2) ?
312+
reasmb: goto what
313+
decomp: * why can't i *
314+
reasmb: Do you think you should be able to (2) ?
315+
reasmb: Do you want to be able to (2) ?
316+
reasmb: Do you believe this will help you to (2) ?
317+
reasmb: Have you any idea why you can't (2) ?
318+
reasmb: goto what
319+
decomp: *
320+
reasmb: goto what
321+
key: everyone 2
322+
decomp: * @everyone *
323+
reasmb: Realy, (2) ?
324+
reasmb: Surely not (2).
325+
reasmb: Can you think of anyone in particular ?
326+
reasmb: Who, for example?
327+
reasmb: Are you thinking of a very special person ?
328+
reasmb: Who, may I ask ?
329+
reasmb: Someone special perhaps ?
330+
reasmb: You have a particular person in mind, don't you ?
331+
reasmb: Who do you think you're talking about ?
332+
key: everybody 2
333+
decomp: *
334+
reasmb: goto everyone
335+
key: nobody 2
336+
decomp: *
337+
reasmb: goto everyone
338+
key: noone 2
339+
decomp: *
340+
reasmb: goto everyone
341+
key: always 1
342+
decomp: *
343+
reasmb: Can you think of a specific example ?
344+
reasmb: When ?
345+
reasmb: What incident are you thinking of ?
346+
reasmb: Really, always ?
347+
key: alike 10
348+
decomp: *
349+
reasmb: In what way ?
350+
reasmb: What resemblence do you see ?
351+
reasmb: What does that similarity suggest to you ?
352+
reasmb: What other connections do you see ?
353+
reasmb: What do you suppose that resemblence means ?
354+
reasmb: What is the connection, do you suppose ?
355+
reasmb: Could here really be some connection ?
356+
reasmb: How ?
357+
key: like 10
358+
decomp: * @be *like *
359+
reasmb: goto alike

0 commit comments

Comments
 (0)