comparison lisp/play/doctor.el @ 49598:0d8b17d428b5

Trailing whitepace deleted.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 04 Feb 2003 13:24:35 +0000
parents 73e46b26325e
children 695cf19ef79e d7ddb3e565de
comparison
equal deleted inserted replaced
49597:e88404e8f2cf 49598:0d8b17d428b5
166 '((how do you do \?) (hello \.) (howdy!) (hello \.) (hi \.) (hi there \.))) 166 '((how do you do \?) (hello \.) (howdy!) (hello \.) (hi \.) (hi there \.)))
167 (make-local-variable 'drnk) 167 (make-local-variable 'drnk)
168 (setq drnk 168 (setq drnk
169 '((do you drink a lot of (doc// found) \?) 169 '((do you drink a lot of (doc// found) \?)
170 (do you get drunk often \?) 170 (do you get drunk often \?)
171 ((doc$ describe) your drinking habits \.) )) 171 ((doc$ describe) your drinking habits \.) ))
172 (make-local-variable 'drugs) 172 (make-local-variable 'drugs)
173 (setq drugs '( (do you use (doc// found) often \?)((doc$ areyou) 173 (setq drugs '( (do you use (doc// found) often \?)((doc$ areyou)
174 addicted to (doc// found) \?)(do you realize that drugs can 174 addicted to (doc// found) \?)(do you realize that drugs can
175 be very harmful \?)((doc$ maybe) you should try to quit using (doc// found) 175 be very harmful \?)((doc$ maybe) you should try to quit using (doc// found)
176 \.))) 176 \.)))
254 '((i see \.\.\.) 254 '((i see \.\.\.)
255 (yes\,) 255 (yes\,)
256 (i understand \.) 256 (i understand \.)
257 (oh \.) )) 257 (oh \.) ))
258 (make-local-variable 'please) 258 (make-local-variable 'please)
259 (setq please 259 (setq please
260 '((please\,) 260 '((please\,)
261 (i would appreciate it if you would) 261 (i would appreciate it if you would)
262 (perhaps you could) 262 (perhaps you could)
263 (please\,) 263 (please\,)
264 (would you please) 264 (would you please)
277 (setq something 277 (setq something
278 '((something) 278 '((something)
279 (more) 279 (more)
280 (how you feel))) 280 (how you feel)))
281 (make-local-variable 'things) 281 (make-local-variable 'things)
282 (setq things 282 (setq things
283 '(;(your interests in computers) ;; let's make this less computer oriented 283 '(;(your interests in computers) ;; let's make this less computer oriented
284 ;(the machines you use) 284 ;(the machines you use)
285 (your plans) 285 (your plans)
286 ;(your use of computers) 286 ;(your use of computers)
287 (your life) 287 (your life)
304 (talk about) 304 (talk about)
305 (discuss) 305 (discuss)
306 (tell me more about) 306 (tell me more about)
307 (elaborate on))) 307 (elaborate on)))
308 (make-local-variable 'ibelieve) 308 (make-local-variable 'ibelieve)
309 (setq ibelieve 309 (setq ibelieve
310 '((i believe) (i think) (i have a feeling) (it seems to me that) 310 '((i believe) (i think) (i have a feeling) (it seems to me that)
311 (it looks like))) 311 (it looks like)))
312 (make-local-variable 'problems) 312 (make-local-variable 'problems)
313 (setq problems '( (problems) 313 (setq problems '( (problems)
314 (inhibitions) 314 (inhibitions)
322 (are you annoyed that) 322 (are you annoyed that)
323 (did you ever regret) 323 (did you ever regret)
324 (are you sorry) 324 (are you sorry)
325 (are you satisfied with the fact that))) 325 (are you satisfied with the fact that)))
326 (make-local-variable 'machlst) 326 (make-local-variable 'machlst)
327 (setq machlst 327 (setq machlst
328 '((you have your mind on (doc// found) \, it seems \.) 328 '((you have your mind on (doc// found) \, it seems \.)
329 (you think too much about (doc// found) \.) 329 (you think too much about (doc// found) \.)
330 (you should try taking your mind off of (doc// found)\.) 330 (you should try taking your mind off of (doc// found)\.)
331 (are you a computer hacker \?))) 331 (are you a computer hacker \?)))
332 (make-local-variable 'qlist) 332 (make-local-variable 'qlist)
349 ((doc$ bother) you\, too\, may die someday \?) 349 ((doc$ bother) you\, too\, may die someday \?)
350 (i am worried by your obsession with this topic!) 350 (i am worried by your obsession with this topic!)
351 (did you watch a lot of crime and violence on television as a child \?)) 351 (did you watch a lot of crime and violence on television as a child \?))
352 ) 352 )
353 (make-local-variable 'sexlst) 353 (make-local-variable 'sexlst)
354 (setq sexlst 354 (setq sexlst
355 '(((doc$ areyou) (doc$ afraidof) sex \?) 355 '(((doc$ areyou) (doc$ afraidof) sex \?)
356 ((doc$ describe)(doc$ something) about your sexual history \.) 356 ((doc$ describe)(doc$ something) about your sexual history \.)
357 ((doc$ please)(doc$ describe) your sex life \.\.\.) 357 ((doc$ please)(doc$ describe) your sex life \.\.\.)
358 ((doc$ describe) your (doc$ feelings-about) your sexual partner \.) 358 ((doc$ describe) your (doc$ feelings-about) your sexual partner \.)
359 ((doc$ describe) your most (doc$ random-adjective) sexual experience \.) 359 ((doc$ describe) your most (doc$ random-adjective) sexual experience \.)
404 (do you enjoy being (doc// found) \?) 404 (do you enjoy being (doc// found) \?)
405 (what makes you (doc// found) \?) 405 (what makes you (doc// found) \?)
406 (how often (doc$ areyou)(doc// found) \?) 406 (how often (doc$ areyou)(doc// found) \?)
407 (when were you last (doc// found) \?))) 407 (when were you last (doc// found) \?)))
408 (make-local-variable 'replist) 408 (make-local-variable 'replist)
409 (setq replist 409 (setq replist
410 '((i . (you)) 410 '((i . (you))
411 (my . (your)) 411 (my . (your))
412 (me . (you)) 412 (me . (you))
413 (you . (me)) 413 (you . (me))
414 (your . (my)) 414 (your . (my))
882 ((member sent howareyoulst) 882 ((member sent howareyoulst)
883 (doctor-type '(i\'m ok \. (doc$ describe) yourself \.))) 883 (doctor-type '(i\'m ok \. (doc$ describe) yourself \.)))
884 ((or (member sent '((good bye) (see you later) (i quit) (so long) 884 ((or (member sent '((good bye) (see you later) (i quit) (so long)
885 (go away) (get lost))) 885 (go away) (get lost)))
886 (memq (car sent) 886 (memq (car sent)
887 '(bye halt break quit done exit goodbye 887 '(bye halt break quit done exit goodbye
888 bye\, stop pause goodbye\, stop pause))) 888 bye\, stop pause goodbye\, stop pause)))
889 (doctor-type (doc$ bye))) 889 (doctor-type (doc$ bye)))
890 ((and (eq (car sent) 'you) 890 ((and (eq (car sent) 'you)
891 (memq (cadr sent) abusewords)) 891 (memq (cadr sent) abusewords))
892 (setq found (cadr sent)) 892 (setq found (cadr sent))
988 (setq temp (cdr temp))))) 988 (setq temp (cdr temp)))))
989 found) 989 found)
990 990
991 (defun doctor-def (x) 991 (defun doctor-def (x)
992 (progn 992 (progn
993 (doctor-type (list 'the 'word x 'means (doctor-meaning x) 'to 'me)) 993 (doctor-type (list 'the 'word x 'means (doctor-meaning x) 'to 'me))
994 nil)) 994 nil))
995 995
996 (defun doctor-forget () 996 (defun doctor-forget ()
997 "Delete the last element of the history list." 997 "Delete the last element of the history list."
998 (setq history (reverse (cdr (reverse history))))) 998 (setq history (reverse (cdr (reverse history)))))
1091 lose losing lost 1091 lose losing lost
1092 love loved loves loving 1092 love loved loves loving
1093 luse lusing lust lusts 1093 luse lusing lust lusts
1094 made make makes making may mean means meant might 1094 made make makes making may mean means meant might
1095 move moved moves moving must 1095 move moved moves moving must
1096 need needed needs 1096 need needed needs
1097 order ordered orders ought 1097 order ordered orders ought
1098 paid pay pays pick picked picking picks 1098 paid pay pays pick picked picking picks
1099 placed placing prefer prefers put puts 1099 placed placing prefer prefers put puts
1100 ran rape raped rapes 1100 ran rape raped rapes
1101 read reading reads recall receive received receives 1101 read reading reads recall receive received receives
1102 refer refered referred refers 1102 refer refered referred refers
1103 relate related relates remember remembered remembers 1103 relate related relates remember remembered remembers
1198 twenty thirty forty fifty sixty seventy eighty ninety 1198 twenty thirty forty fifty sixty seventy eighty ninety
1199 hundred thousand million billion 1199 hundred thousand million billion
1200 half quarter 1200 half quarter
1201 first second third fourth fifth 1201 first second third fourth fifth
1202 sixth seventh eighth ninth tenth))) 1202 sixth seventh eighth ninth tenth)))
1203 1203
1204 (defun doctor-colorp (x) 1204 (defun doctor-colorp (x)
1205 (memq x '(beige black blue brown crimson 1205 (memq x '(beige black blue brown crimson
1206 gray grey green 1206 gray grey green
1207 orange pink purple red tan tawny 1207 orange pink purple red tan tawny
1208 violet white yellow))) 1208 violet white yellow)))
1483 ((equal sent (doctor-assm '(because))) 1483 ((equal sent (doctor-assm '(because)))
1484 (doctor-type (doc$ shortbeclst))) 1484 (doctor-type (doc$ shortbeclst)))
1485 ((equal sent (doctor-assm '(no))) 1485 ((equal sent (doctor-assm '(no)))
1486 (doctor-type (doc$ neglst))) 1486 (doctor-type (doc$ neglst)))
1487 (t (doctor-type (doc$ shortlst))))))) 1487 (t (doctor-type (doc$ shortlst)))))))
1488 1488
1489 (defun doctor-alcohol () (doctor-type (doc$ drnk))) 1489 (defun doctor-alcohol () (doctor-type (doc$ drnk)))
1490 1490
1491 (defun doctor-desire () 1491 (defun doctor-desire ()
1492 (let ((foo (memq found sent))) 1492 (let ((foo (memq found sent)))
1493 (cond ((< (length foo) 2) 1493 (cond ((< (length foo) 2)
1617 (defun doctor-eliza () 1617 (defun doctor-eliza ()
1618 (cond (eliza-flag (doctor-type (doc$ elizalst))) 1618 (cond (eliza-flag (doctor-type (doc$ elizalst)))
1619 (t (setq eliza-flag t) 1619 (t (setq eliza-flag t)
1620 (doctor-type '((doc// found) \? hah ! 1620 (doctor-type '((doc// found) \? hah !
1621 (doc$ please) (doc$ continue) \.))))) 1621 (doc$ please) (doc$ continue) \.)))))
1622 1622
1623 (defun doctor-sports () (doctor-type (doc$ sportslst))) 1623 (defun doctor-sports () (doctor-type (doc$ sportslst)))
1624 1624
1625 (defun doctor-math () (doctor-type (doc$ mathlst))) 1625 (defun doctor-math () (doctor-type (doc$ mathlst)))
1626 1626
1627 (defun doctor-zippy () 1627 (defun doctor-zippy ()