Mercurial > emacs
annotate lisp/play/doctor.el @ 1225:e16f52a7c9f9
New version from sk. Further hacked:
(find-grep-dired): Use ! -type d, not -type f.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Sun, 27 Sep 1992 01:24:00 +0000 |
parents | 213978acbc1e |
children | 10e417efb12a |
rev | line source |
---|---|
662
8a533acedb77
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
1 ;;; doctor.el --- psychological help for frustrated users. |
8a533acedb77
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
2 |
845 | 3 ;; Copyright (C) 1985, 1987 Free Software Foundation, Inc. |
4 | |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
5 ;; Maintainer: FSF |
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
6 ;; Keywords: games |
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
7 |
400 | 8 ;; This file is part of GNU Emacs. |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
12 ;; the Free Software Foundation; either version 2, or (at your option) |
400 | 13 ;; any later version. |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to | |
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
23 | |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
24 ;;; Code: |
400 | 25 |
26 (defun doctor-cadr (x) (car (cdr x))) | |
27 (defun doctor-caddr (x) (car (cdr (cdr x)))) | |
28 (defun doctor-cddr (x) (cdr (cdr x))) | |
29 | |
30 (defun // (x) x) | |
31 | |
32 (defmacro $ (what) | |
33 "quoted arg form of doctor-$" | |
34 (list 'doctor-$ (list 'quote what))) | |
35 | |
36 (defun doctor-$ (what) | |
37 "Return the car of a list, rotating the list each time" | |
38 (let* ((vv (symbol-value what)) | |
39 (first (car vv)) | |
40 (ww (append (cdr vv) (list first)))) | |
41 (set what ww) | |
42 first)) | |
43 | |
44 (defvar doctor-mode-map nil) | |
45 (if doctor-mode-map | |
46 nil | |
47 (setq doctor-mode-map (make-sparse-keymap)) | |
48 (define-key doctor-mode-map "\n" 'doctor-read-print) | |
49 (define-key doctor-mode-map "\r" 'doctor-ret-or-read)) | |
50 | |
51 (defun doctor-mode () | |
52 "Major mode for running the Doctor (Eliza) program. | |
53 Like Text mode with Auto Fill mode | |
54 except that RET when point is after a newline, or LFD at any time, | |
55 reads the sentence before point, and prints the Doctor's answer." | |
56 (interactive) | |
57 (text-mode) | |
58 (make-doctor-variables) | |
59 (use-local-map doctor-mode-map) | |
60 (setq major-mode 'doctor-mode) | |
61 (setq mode-name "Doctor") | |
62 (turn-on-auto-fill) | |
63 (doctor-type '(i am the psychotherapist \. | |
64 ($ please) ($ describe) your ($ problems) \. | |
65 each time you are finished talking, type \R\E\T twice \.)) | |
66 (insert "\n")) | |
67 | |
68 (defun make-doctor-variables () | |
69 (make-local-variable 'monosyllables) | |
70 (setq monosyllables | |
71 " | |
72 Your attitude at the end of the session was wholly unacceptable. | |
73 Please try to come back next time with a willingness to speak more | |
74 freely. If you continue to refuse to talk openly, there is little | |
75 I can do to help! | |
76 ") | |
77 (make-local-variable 'typos) | |
78 (setq typos | |
79 (mapcar (function (lambda (x) | |
80 (put (car x) 'doctor-correction (doctor-cadr x)) | |
81 (put (doctor-cadr x) 'doctor-expansion (doctor-caddr x)) | |
82 (car x))) | |
83 '((theyll they\'ll (they will)) | |
84 (theyre they\'re (they are)) | |
85 (hes he\'s (he is)) | |
86 (he7s he\'s (he is)) | |
87 (im i\'m (you are)) | |
88 (i7m i\'m (you are)) | |
89 (isa is\ a (is a)) | |
90 (thier their (their)) | |
91 (dont don\'t (do not)) | |
92 (don7t don\'t (do not)) | |
93 (you7re you\'re (i am)) | |
94 (you7ve you\'ve (i have)) | |
95 (you7ll you\'ll (i will))))) | |
96 (make-local-variable 'found) | |
97 (setq found nil) | |
98 (make-local-variable 'owner) | |
99 (setq owner nil) | |
100 (make-local-variable 'history) | |
101 (setq history nil) | |
102 (make-local-variable '*debug*) | |
103 (setq *debug* nil) | |
104 (make-local-variable 'inter) | |
105 (setq inter | |
106 '((well\,) | |
107 (hmmm \.\.\.\ so\,) | |
108 (so) | |
109 (\.\.\.and) | |
110 (then))) | |
111 (make-local-variable 'continue) | |
112 (setq continue | |
113 '((continue) | |
114 (proceed) | |
115 (go on) | |
116 (keep going) )) | |
117 (make-local-variable 'relation) | |
118 (setq relation | |
119 '((your relationship with) | |
120 (something you remember about) | |
121 (your feelings toward) | |
122 (some experiences you have had with) | |
123 (how you feel about))) | |
124 (make-local-variable 'fears) | |
125 (setq fears '( (($ whysay) you are ($ afraidof) (// feared) \?) | |
126 (you seem terrified by (// feared) \.) | |
127 (when did you first feel ($ afraidof) (// feared) \?) )) | |
128 (make-local-variable 'sure) | |
129 (setq sure '((sure)(positive)(certain)(absolutely sure))) | |
130 (make-local-variable 'afraidof) | |
131 (setq afraidof '( (afraid of) (frightened by) (scared of) )) | |
132 (make-local-variable 'areyou) | |
133 (setq areyou '( (are you)(have you been)(have you been) )) | |
134 (make-local-variable 'isrelated) | |
135 (setq isrelated '( (has something to do with)(is related to) | |
136 (could be the reason for) (is caused by)(is because of))) | |
137 (make-local-variable 'arerelated) | |
138 (setq arerelated '((have something to do with)(are related to) | |
139 (could have caused)(could be the reason for) (are caused by) | |
140 (are because of))) | |
141 (make-local-variable 'moods) | |
142 (setq moods '( (($ areyou)(// found) often \?) | |
143 (what causes you to be (// found) \?) | |
144 (($ whysay) you are (// found) \?) )) | |
145 (make-local-variable 'maybe) | |
146 (setq maybe | |
147 '((maybe) | |
148 (perhaps) | |
149 (possibly))) | |
150 (make-local-variable 'whatwhen) | |
151 (setq whatwhen | |
152 '((what happened when) | |
153 (what would happen if))) | |
154 (make-local-variable 'hello) | |
155 (setq hello | |
156 '((how do you do \?) (hello \.) (howdy!) (hello \.) (hi \.) (hi there \.))) | |
157 (make-local-variable 'drnk) | |
158 (setq drnk | |
159 '((do you drink a lot of (// found) \?) | |
160 (do you get drunk often \?) | |
161 (($ describe) your drinking habits \.) )) | |
162 (make-local-variable 'drugs) | |
163 (setq drugs '( (do you use (// found) often \?)(($ areyou) | |
164 addicted to (// found) \?)(do you realize that drugs can | |
165 be very harmful \?)(($ maybe) you should try to quit using (// found) | |
166 \.))) | |
167 (make-local-variable 'whywant) | |
168 (setq whywant '( (($ whysay) (// subj) might ($ want) (// obj) \?) | |
169 (how does it feel to want \?) | |
170 (why should (// subj) get (// obj) \?) | |
171 (when did (// subj) first ($ want) (// obj) \?) | |
172 (($ areyou) obsessed with (// obj) \?) | |
173 (why should i give (// obj) to (// subj) \?) | |
174 (have you ever gotten (// obj) \?) )) | |
175 (make-local-variable 'canyou) | |
176 (setq canyou '((of course i can \.) | |
177 (why should i \?) | |
178 (what makes you think i would even want to \?) | |
179 (i am the doctor\, i can do anything i damn please \.) | |
180 (not really\, it\'s not up to me \.) | |
181 (depends\, how important is it \?) | |
182 (i could\, but i don\'t think it would be a wise thing to do \.) | |
183 (can you \?) | |
184 (maybe i can\, maybe i can\'t \.\.\.) | |
185 (i don\'t think i should do that \.))) | |
186 (make-local-variable 'want) | |
187 (setq want '( (want) (desire) (wish) (want) (hope) )) | |
188 (make-local-variable 'shortlst) | |
189 (setq shortlst | |
190 '((can you elaborate on that \?) | |
191 (($ please) continue \.) | |
192 (go on\, don\'t be afraid \.) | |
193 (i need a little more detail please \.) | |
194 (you\'re being a bit brief\, ($ please) go into detail \.) | |
195 (can you be more explicit \?) | |
196 (and \?) | |
197 (($ please) go into more detail \?) | |
198 (you aren\'t being very talkative today\!) | |
199 (is that all there is to it \?) | |
200 (why must you respond so briefly \?))) | |
201 | |
202 (make-local-variable 'famlst) | |
203 (setq famlst | |
204 '((tell me ($ something) about (// owner) family \.) | |
205 (you seem to dwell on (// owner) family \.) | |
206 (($ areyou) hung up on (// owner) family \?))) | |
207 (make-local-variable 'huhlst) | |
208 (setq huhlst | |
209 '((($ whysay)(// sent) \?) | |
210 (is it because of ($ things) that you say (// sent) \?) )) | |
211 (make-local-variable 'longhuhlst) | |
212 (setq longhuhlst | |
213 '((($ whysay) that \?) | |
214 (i don\'t understand \.) | |
215 (($ thlst)) | |
216 (($ areyou) ($ afraidof) that \?))) | |
217 (make-local-variable 'feelings) | |
218 (setq feelings-about | |
219 '((feelings about) | |
220 (aprehensions toward) | |
221 (thoughts on) | |
222 (emotions toward))) | |
223 (make-local-variable 'random) | |
224 (setq random-adjective | |
225 '((vivid) | |
226 (emotionally stimulating) | |
227 (exciting) | |
228 (boring) | |
229 (interesting) | |
230 (recent) | |
231 (random) ;How can we omit this? | |
232 (unusual) | |
233 (shocking) | |
234 (embarrassing))) | |
235 (make-local-variable 'whysay) | |
236 (setq whysay | |
237 '((why do you say) | |
238 (what makes you believe) | |
239 (are you sure that) | |
240 (do you really think) | |
241 (what makes you think) )) | |
242 (make-local-variable 'isee) | |
243 (setq isee | |
244 '((i see \.\.\.) | |
245 (yes\,) | |
246 (i understand \.) | |
247 (oh \.) )) | |
248 (make-local-variable 'please) | |
249 (setq please | |
250 '((please\,) | |
251 (i would appreciate it if you would) | |
252 (perhaps you could) | |
253 (please\,) | |
254 (would you please) | |
255 (why don\'t you) | |
256 (could you))) | |
257 (make-local-variable 'bye) | |
258 (setq bye | |
259 '((my secretary will send you a bill \.) | |
260 (bye bye \.) | |
261 (see ya \.) | |
262 (ok\, talk to you some other time \.) | |
263 (talk to you later \.) | |
264 (ok\, have fun \.) | |
265 (ciao \.))) | |
266 (make-local-variable 'something) | |
267 (setq something | |
268 '((something) | |
269 (more) | |
270 (how you feel))) | |
271 (make-local-variable 'things) | |
272 (setq things | |
273 '(;(your interests in computers) ;; let's make this less computer oriented | |
274 ;(the machines you use) | |
275 (your plans) | |
276 ;(your use of computers) | |
277 (your life) | |
278 ;(other machines you use) | |
279 (the people you hang around with) | |
280 ;(computers you like) | |
281 (problems at school) | |
282 (any hobbies you have) | |
283 ;(other computers you use) | |
284 (your sex life) | |
285 (hangups you have) | |
286 (your inhibitions) | |
287 (some problems in your childhood) | |
288 ;(knowledge of computers) | |
289 (some problems at home))) | |
290 (make-local-variable 'describe) | |
291 (setq describe | |
292 '((describe) | |
293 (tell me about) | |
294 (talk about) | |
295 (discuss) | |
296 (tell me more about) | |
297 (elaborate on))) | |
298 (make-local-variable 'ibelieve) | |
299 (setq ibelieve | |
300 '((i believe) (i think) (i have a feeling) (it seems to me that) | |
301 (it looks like))) | |
302 (make-local-variable 'problems) | |
303 (setq problems '( (problems) | |
304 (inhibitions) | |
305 (hangups) | |
306 (difficulties) | |
307 (anxieties) | |
308 (frustrations) )) | |
309 (make-local-variable 'bother) | |
310 (setq bother | |
311 '((does it bother you that) | |
312 (are you annoyed that) | |
313 (did you ever regret) | |
314 (are you sorry) | |
315 (are you satisfied with the fact that))) | |
316 (make-local-variable 'machlst) | |
317 (setq machlst | |
318 '((you have your mind on (// found) \, it seems \.) | |
319 (you think too much about (// found) \.) | |
320 (you should try taking your mind off of (// found)\.) | |
321 (are you a computer hacker \?))) | |
322 (make-local-variable 'qlist) | |
323 (setq qlist | |
324 '((what do you think \?) | |
325 (i\'ll ask the questions\, if you don\'t mind!) | |
326 (i could ask the same thing myself \.) | |
327 (($ please) allow me to do the questioning \.) | |
328 (i have asked myself that question many times \.) | |
329 (($ please) try to answer that question yourself \.))) | |
330 (make-local-variable 'elist) | |
331 (setq elist | |
332 '((($ please) try to calm yourself \.) | |
333 (you seem very excited \. relax \. ($ please) ($ describe) ($ things) | |
334 \.) | |
335 (you\'re being very emotional \. calm down \.))) | |
336 (make-local-variable 'foullst) | |
337 (setq foullst | |
338 '((($ please) watch your tongue!) | |
339 (($ please) avoid such unwholesome thoughts \.) | |
340 (($ please) get your mind out of the gutter \.) | |
341 (such lewdness is not appreciated \.))) | |
342 (make-local-variable 'deathlst) | |
343 (setq deathlst | |
344 '((this is not a healthy way of thinking \.) | |
345 (($ bother) you\, too\, may die someday \?) | |
346 (i am worried by your obssession with this topic!) | |
347 (did you watch a lot of crime and violence on television as a child \?)) | |
348 ) | |
349 (make-local-variable 'sexlst) | |
350 (setq sexlst | |
351 '((($ areyou) ($ afraidof) sex \?) | |
352 (($ describe)($ something) about your sexual history \.) | |
353 (($ please)($ describe) your sex life \.\.\.) | |
354 (($ describe) your ($ feelings-about) your sexual partner \.) | |
355 (($ describe) your most ($ random-adjective) sexual experience \.) | |
356 (($ areyou) satisfied with (// lover) \.\.\. \?))) | |
357 (make-local-variable 'neglst) | |
358 (setq neglst | |
359 '((why not \?) | |
360 (($ bother) i ask that \?) | |
361 (why not \?) | |
362 (why not \?) | |
363 (how come \?) | |
364 (($ bother) i ask that \?))) | |
365 (make-local-variable 'beclst) | |
366 (setq beclst '( | |
367 (is it because (// sent) that you came to me \?) | |
368 (($ bother)(// sent) \?) | |
369 (when did you first know that (// sent) \?) | |
370 (is the fact that (// sent) the real reason \?) | |
371 (does the fact that (// sent) explain anything else \?) | |
372 (($ areyou)($ sure)(// sent) \? ) )) | |
373 (make-local-variable 'shortbeclst) | |
374 (setq shortbeclst '( | |
375 (($ bother) i ask you that \?) | |
376 (that\'s not much of an answer!) | |
377 (($ inter) why won\'t you talk about it \?) | |
378 (speak up!) | |
379 (($ areyou) ($ afraidof) talking about it \?) | |
380 (don\'t be ($ afraidof) elaborating \.) | |
381 (($ please) go into more detail \.))) | |
382 (make-local-variable 'thlst) | |
383 (setq thlst '( | |
384 (($ maybe)($ things)($ arerelated) this \.) | |
385 (is it because of ($ things) that you are going through all this \?) | |
386 (how do you reconcile ($ things) \? ) | |
387 (($ maybe) this ($ isrelated)($ things) \?) )) | |
388 (make-local-variable 'remlst) | |
389 (setq remlst '( (earlier you said ($ history) \?) | |
390 (you mentioned that ($ history) \?) | |
391 (($ whysay)($ history) \? ) )) | |
392 (make-local-variable 'toklst) | |
393 (setq toklst | |
394 '((is this how you relax \?) | |
395 (how long have you been smoking grass \?) | |
396 (($ areyou) ($ afraidof) of being drawn to using harder stuff \?))) | |
397 (make-local-variable 'states) | |
398 (setq states | |
399 '((do you get (// found) often \?) | |
400 (do you enjoy being (// found) \?) | |
401 (what makes you (// found) \?) | |
402 (how often ($ areyou)(// found) \?) | |
403 (when were you last (// found) \?))) | |
404 (make-local-variable 'replist) | |
405 (setq replist | |
406 '((i . (you)) | |
407 (my . (your)) | |
408 (me . (you)) | |
409 (you . (me)) | |
410 (your . (my)) | |
411 (mine . (yours)) | |
412 (yours . (mine)) | |
413 (our . (your)) | |
414 (ours . (yours)) | |
415 (we . (you)) | |
416 (dunno . (do not know)) | |
417 ;; (yes . ()) | |
418 (no\, . ()) | |
419 (yes\, . ()) | |
420 (ya . (i)) | |
421 (aint . (am not)) | |
422 (wanna . (want to)) | |
423 (gimme . (give me)) | |
424 (gotta . (have to)) | |
425 (gonna . (going to)) | |
426 (never . (not ever)) | |
427 (doesn\'t . (does not)) | |
428 (don\'t . (do not)) | |
429 (aren\'t . (are not)) | |
430 (isn\'t . (is not)) | |
431 (won\'t . (will not)) | |
432 (can\'t . (cannot)) | |
433 (haven\'t . (have not)) | |
434 (i\'m . (you are)) | |
435 (ourselves . (yourselves)) | |
436 (myself . (yourself)) | |
437 (yourself . (myself)) | |
438 (you\'re . (i am)) | |
439 (you\'ve . (i have)) | |
440 (i\'ve . (you have)) | |
441 (i\'ll . (you will)) | |
442 (you\'ll . (i shall)) | |
443 (i\'d . (you would)) | |
444 (you\'d . (i would)) | |
445 (here . (there)) | |
446 (please . ()) | |
447 (eh\, . ()) | |
448 (eh . ()) | |
449 (oh\, . ()) | |
450 (oh . ()) | |
451 (shouldn\'t . (should not)) | |
452 (wouldn\'t . (would not)) | |
453 (won\'t . (will not)) | |
454 (hasn\'t . (has not)))) | |
455 (make-local-variable 'stallmanlst) | |
456 (setq stallmanlst '( | |
457 (($ describe) your ($ feelings-about) him \.) | |
458 (($ areyou) a friend of Stallman \?) | |
459 (($ bother) Stallman is ($ random-adjective) \?) | |
460 (($ ibelieve) you are ($ afraidof) him \.))) | |
461 (make-local-variable 'schoollst) | |
462 (setq schoollst '( | |
463 (($ describe) your (// found) \.) | |
464 (($ bother) your grades could ($ improve) \?) | |
465 (($ areyou) ($ afraidof) (// found) \?) | |
466 (($ maybe) this ($ isrelated) to your attitude \.) | |
467 (($ areyou) absent often \?) | |
468 (($ maybe) you should study ($ something) \.))) | |
469 (make-local-variable 'improve) | |
470 (setq improve '((improve) (be better) (be improved) (be higher))) | |
471 (make-local-variable 'elizalst) | |
472 (setq elizalst '( | |
473 (($ areyou) ($ sure) \?) | |
474 (($ ibelieve) you have ($ problems) with (// found) \.) | |
475 (($ whysay) (// sent) \?))) | |
476 (make-local-variable 'sportslst) | |
477 (setq sportslst '( | |
478 (tell me ($ something) about (// found) \.) | |
479 (($ describe) ($ relation) (// found) \.) | |
480 (do you find (// found) ($ random-adjective) \?))) | |
481 (make-local-variable 'mathlst) | |
482 (setq mathlst '( | |
483 (($ describe) ($ something) about math \.) | |
484 (($ maybe) your ($ problems) ($ arerelated) (// found) \.) | |
485 (i do\'nt know much (// found) \, but ($ continue) | |
486 anyway \.))) | |
487 (make-local-variable 'zippylst) | |
488 (setq zippylst '( | |
489 (($ areyou) Zippy \?) | |
490 (($ ibelieve) you have some serious ($ problems) \.) | |
491 (($ bother) you are a pinhead \?))) | |
492 (make-local-variable 'chatlst) | |
493 (setq chatlst '( | |
494 (($ maybe) we could chat \.) | |
495 (($ please) ($ describe) ($ something) about chat mode \.) | |
496 (($ bother) our discussion is so ($ random-adjective) \?))) | |
497 (make-local-variable 'abuselst) | |
498 (setq abuselst '( | |
499 (($ please) try to be less abusive \.) | |
500 (($ describe) why you call me (// found) \.) | |
501 (i\'ve had enough of you!))) | |
502 (make-local-variable 'abusewords) | |
503 (setq abusewords '(boring bozo clown clumsy cretin dumb dummy | |
504 fool foolish gnerd gnurd idiot jerk | |
505 lose loser louse lousy luse luser | |
506 moron nerd nurd oaf oafish reek | |
507 stink stupid tool toolish twit)) | |
508 (make-local-variable 'howareyoulst) | |
509 (setq howareyoulst '((how are you) (hows it going) (hows it going eh) | |
510 (how\'s it going) (how\'s it going eh) (how goes it) | |
511 (whats up) (whats new) (what\'s up) (what\'s new) | |
512 (howre you) (how\'re you) (how\'s everything) | |
513 (how is everything) (how do you do) | |
514 (how\'s it hanging) (que pasa) | |
515 (how are you doing) (what do you say))) | |
516 (make-local-variable 'whereoutp) | |
517 (setq whereoutp '( huh remem rthing ) ) | |
518 (make-local-variable 'subj) | |
519 (setq subj nil) | |
520 (make-local-variable 'verb) | |
521 (setq verb nil) | |
522 (make-local-variable 'obj) | |
523 (setq obj nil) | |
524 (make-local-variable 'feared) | |
525 (setq feared nil) | |
526 (make-local-variable 'observation-list) | |
527 (setq observation-list nil) | |
528 (make-local-variable 'repetitive-shortness) | |
529 (setq repetitive-shortness '(0 . 0)) | |
530 (make-local-variable '**mad**) | |
531 (setq **mad** nil) | |
532 (make-local-variable 'rms-flag) | |
533 (setq rms-flag nil) | |
534 (make-local-variable 'eliza-flag) | |
535 (setq eliza-flag nil) | |
536 (make-local-variable 'zippy-flag) | |
537 (setq zippy-flag nil) | |
538 (make-local-variable 'lover) | |
539 (setq lover '(your partner)) | |
540 (make-local-variable 'bak) | |
541 (setq bak nil) | |
542 (make-local-variable 'lincount) | |
543 (setq lincount 0) | |
544 (make-local-variable '*print-upcase*) | |
545 (setq *print-upcase* nil) | |
546 (make-local-variable '*print-space*) | |
547 (setq *print-space* nil) | |
548 (make-local-variable 'howdyflag) | |
549 (setq howdyflag nil) | |
550 (make-local-variable 'object) | |
551 (setq object nil)) | |
552 | |
553 ;; Define equivalence classes of words that get treated alike. | |
554 | |
555 (defun doctor-meaning (x) (get x 'doctor-meaning)) | |
556 | |
557 (defmacro doctor-put-meaning (symb val) | |
558 "Store the base meaning of a word on the property list." | |
559 (list 'put (list 'quote symb) ''doctor-meaning val)) | |
560 | |
561 (doctor-put-meaning howdy 'howdy) | |
562 (doctor-put-meaning hi 'howdy) | |
563 (doctor-put-meaning greetings 'howdy) | |
564 (doctor-put-meaning hello 'howdy) | |
565 (doctor-put-meaning tops20 'mach) | |
566 (doctor-put-meaning tops-20 'mach) | |
567 (doctor-put-meaning tops 'mach) | |
568 (doctor-put-meaning pdp11 'mach) | |
569 (doctor-put-meaning computer 'mach) | |
570 (doctor-put-meaning unix 'mach) | |
571 (doctor-put-meaning machine 'mach) | |
572 (doctor-put-meaning computers 'mach) | |
573 (doctor-put-meaning machines 'mach) | |
574 (doctor-put-meaning pdp11s 'mach) | |
575 (doctor-put-meaning foo 'mach) | |
576 (doctor-put-meaning foobar 'mach) | |
577 (doctor-put-meaning multics 'mach) | |
578 (doctor-put-meaning macsyma 'mach) | |
579 (doctor-put-meaning teletype 'mach) | |
580 (doctor-put-meaning la36 'mach) | |
581 (doctor-put-meaning vt52 'mach) | |
582 (doctor-put-meaning zork 'mach) | |
583 (doctor-put-meaning trek 'mach) | |
584 (doctor-put-meaning startrek 'mach) | |
585 (doctor-put-meaning advent 'mach) | |
586 (doctor-put-meaning pdp 'mach) | |
587 (doctor-put-meaning dec 'mach) | |
588 (doctor-put-meaning commodore 'mach) | |
589 (doctor-put-meaning vic 'mach) | |
590 (doctor-put-meaning bbs 'mach) | |
591 (doctor-put-meaning modem 'mach) | |
592 (doctor-put-meaning baud 'mach) | |
593 (doctor-put-meaning macintosh 'mach) | |
594 (doctor-put-meaning vax 'mach) | |
595 (doctor-put-meaning vms 'mach) | |
596 (doctor-put-meaning ibm 'mach) | |
597 (doctor-put-meaning pc 'mach) | |
598 (doctor-put-meaning bitching 'foul) | |
599 (doctor-put-meaning shit 'foul) | |
600 (doctor-put-meaning bastard 'foul) | |
601 (doctor-put-meaning damn 'foul) | |
602 (doctor-put-meaning damned 'foul) | |
603 (doctor-put-meaning hell 'foul) | |
604 (doctor-put-meaning suck 'foul) | |
605 (doctor-put-meaning sucking 'foul) | |
606 (doctor-put-meaning sux 'foul) | |
607 (doctor-put-meaning ass 'foul) | |
608 (doctor-put-meaning whore 'foul) | |
609 (doctor-put-meaning bitch 'foul) | |
610 (doctor-put-meaning asshole 'foul) | |
611 (doctor-put-meaning shrink 'foul) | |
612 (doctor-put-meaning pot 'toke) | |
613 (doctor-put-meaning grass 'toke) | |
614 (doctor-put-meaning weed 'toke) | |
615 (doctor-put-meaning marijuana 'toke) | |
616 (doctor-put-meaning acapulco 'toke) | |
617 (doctor-put-meaning columbian 'toke) | |
618 (doctor-put-meaning tokin 'toke) | |
619 (doctor-put-meaning joint 'toke) | |
620 (doctor-put-meaning toke 'toke) | |
621 (doctor-put-meaning toking 'toke) | |
622 (doctor-put-meaning tokin\' 'toke) | |
623 (doctor-put-meaning toked 'toke) | |
624 (doctor-put-meaning roach 'toke) | |
625 (doctor-put-meaning pills 'drug) | |
626 (doctor-put-meaning dope 'drug) | |
627 (doctor-put-meaning acid 'drug) | |
628 (doctor-put-meaning lsd 'drug) | |
629 (doctor-put-meaning speed 'drug) | |
630 (doctor-put-meaning heroin 'drug) | |
631 (doctor-put-meaning hash 'drug) | |
632 (doctor-put-meaning cocaine 'drug) | |
633 (doctor-put-meaning uppers 'drug) | |
634 (doctor-put-meaning downers 'drug) | |
635 (doctor-put-meaning loves 'loves) | |
636 (doctor-put-meaning love 'love) | |
637 (doctor-put-meaning loved 'love) | |
638 (doctor-put-meaning hates 'hates) | |
639 (doctor-put-meaning dislikes 'hates) | |
640 (doctor-put-meaning hate 'hate) | |
641 (doctor-put-meaning hated 'hate) | |
642 (doctor-put-meaning dislike 'hate) | |
643 (doctor-put-meaning stoned 'state) | |
644 (doctor-put-meaning drunk 'state) | |
645 (doctor-put-meaning drunken 'state) | |
646 (doctor-put-meaning high 'state) | |
647 (doctor-put-meaning horny 'state) | |
648 (doctor-put-meaning blasted 'state) | |
649 (doctor-put-meaning happy 'state) | |
650 (doctor-put-meaning paranoid 'state) | |
651 (doctor-put-meaning wish 'desire) | |
652 (doctor-put-meaning wishes 'desire) | |
653 (doctor-put-meaning want 'desire) | |
654 (doctor-put-meaning desire 'desire) | |
655 (doctor-put-meaning like 'desire) | |
656 (doctor-put-meaning hope 'desire) | |
657 (doctor-put-meaning hopes 'desire) | |
658 (doctor-put-meaning desires 'desire) | |
659 (doctor-put-meaning wants 'desire) | |
660 (doctor-put-meaning desires 'desire) | |
661 (doctor-put-meaning likes 'desire) | |
662 (doctor-put-meaning needs 'desire) | |
663 (doctor-put-meaning need 'desire) | |
664 (doctor-put-meaning frustrated 'mood) | |
665 (doctor-put-meaning depressed 'mood) | |
666 (doctor-put-meaning annoyed 'mood) | |
667 (doctor-put-meaning upset 'mood) | |
668 (doctor-put-meaning unhappy 'mood) | |
669 (doctor-put-meaning excited 'mood) | |
670 (doctor-put-meaning worried 'mood) | |
671 (doctor-put-meaning lonely 'mood) | |
672 (doctor-put-meaning angry 'mood) | |
673 (doctor-put-meaning mad 'mood) | |
674 (doctor-put-meaning pissed 'mood) | |
675 (doctor-put-meaning jealous 'mood) | |
676 (doctor-put-meaning afraid 'fear) | |
677 (doctor-put-meaning terrified 'fear) | |
678 (doctor-put-meaning fear 'fear) | |
679 (doctor-put-meaning scared 'fear) | |
680 (doctor-put-meaning frightened 'fear) | |
681 (doctor-put-meaning virginity 'sexnoun) | |
682 (doctor-put-meaning virgins 'sexnoun) | |
683 (doctor-put-meaning virgin 'sexnoun) | |
684 (doctor-put-meaning cock 'sexnoun) | |
685 (doctor-put-meaning cocks 'sexnoun) | |
686 (doctor-put-meaning dick 'sexnoun) | |
687 (doctor-put-meaning dicks 'sexnoun) | |
688 (doctor-put-meaning cunt 'sexnoun) | |
689 (doctor-put-meaning cunts 'sexnoun) | |
690 (doctor-put-meaning prostitute 'sexnoun) | |
691 (doctor-put-meaning condom 'sexnoun) | |
692 (doctor-put-meaning sex 'sexnoun) | |
693 (doctor-put-meaning rapes 'sexnoun) | |
694 (doctor-put-meaning wife 'family) | |
695 (doctor-put-meaning family 'family) | |
696 (doctor-put-meaning brothers 'family) | |
697 (doctor-put-meaning sisters 'family) | |
698 (doctor-put-meaning parent 'family) | |
699 (doctor-put-meaning parents 'family) | |
700 (doctor-put-meaning brother 'family) | |
701 (doctor-put-meaning sister 'family) | |
702 (doctor-put-meaning father 'family) | |
703 (doctor-put-meaning mother 'family) | |
704 (doctor-put-meaning husband 'family) | |
705 (doctor-put-meaning siblings 'family) | |
706 (doctor-put-meaning grandmother 'family) | |
707 (doctor-put-meaning grandfather 'family) | |
708 (doctor-put-meaning maternal 'family) | |
709 (doctor-put-meaning paternal 'family) | |
710 (doctor-put-meaning stab 'death) | |
711 (doctor-put-meaning murder 'death) | |
712 (doctor-put-meaning murders 'death) | |
713 (doctor-put-meaning suicide 'death) | |
714 (doctor-put-meaning suicides 'death) | |
715 (doctor-put-meaning kill 'death) | |
716 (doctor-put-meaning kills 'death) | |
717 (doctor-put-meaning die 'death) | |
718 (doctor-put-meaning dies 'death) | |
719 (doctor-put-meaning died 'death) | |
720 (doctor-put-meaning dead 'death) | |
721 (doctor-put-meaning death 'death) | |
722 (doctor-put-meaning deaths 'death) | |
723 (doctor-put-meaning pain 'symptoms) | |
724 (doctor-put-meaning ache 'symptoms) | |
725 (doctor-put-meaning fever 'symptoms) | |
726 (doctor-put-meaning sore 'symptoms) | |
727 (doctor-put-meaning aching 'symptoms) | |
728 (doctor-put-meaning stomachache 'symptoms) | |
729 (doctor-put-meaning headache 'symptoms) | |
730 (doctor-put-meaning hurts 'symptoms) | |
731 (doctor-put-meaning disease 'symptoms) | |
732 (doctor-put-meaning virus 'symptoms) | |
733 (doctor-put-meaning vomit 'symptoms) | |
734 (doctor-put-meaning vomiting 'symptoms) | |
735 (doctor-put-meaning barf 'symptoms) | |
736 (doctor-put-meaning toothache 'symptoms) | |
737 (doctor-put-meaning hurt 'symptoms) | |
738 (doctor-put-meaning rum 'alcohol) | |
739 (doctor-put-meaning gin 'alcohol) | |
740 (doctor-put-meaning vodka 'alcohol) | |
741 (doctor-put-meaning alcohol 'alcohol) | |
742 (doctor-put-meaning bourbon 'alcohol) | |
743 (doctor-put-meaning beer 'alcohol) | |
744 (doctor-put-meaning wine 'alcohol) | |
745 (doctor-put-meaning whiskey 'alcohol) | |
746 (doctor-put-meaning scotch 'alcohol) | |
747 (doctor-put-meaning fuck 'sexverb) | |
748 (doctor-put-meaning fucked 'sexverb) | |
749 (doctor-put-meaning screw 'sexverb) | |
750 (doctor-put-meaning screwing 'sexverb) | |
751 (doctor-put-meaning fucking 'sexverb) | |
752 (doctor-put-meaning rape 'sexverb) | |
753 (doctor-put-meaning raped 'sexverb) | |
754 (doctor-put-meaning kiss 'sexverb) | |
755 (doctor-put-meaning kissing 'sexverb) | |
756 (doctor-put-meaning kisses 'sexverb) | |
757 (doctor-put-meaning screws 'sexverb) | |
758 (doctor-put-meaning fucks 'sexverb) | |
759 (doctor-put-meaning because 'conj) | |
760 (doctor-put-meaning but 'conj) | |
761 (doctor-put-meaning however 'conj) | |
762 (doctor-put-meaning besides 'conj) | |
763 (doctor-put-meaning anyway 'conj) | |
764 (doctor-put-meaning that 'conj) | |
765 (doctor-put-meaning except 'conj) | |
766 (doctor-put-meaning why 'conj) | |
767 (doctor-put-meaning how 'conj) | |
768 (doctor-put-meaning until 'when) | |
769 (doctor-put-meaning when 'when) | |
770 (doctor-put-meaning whenever 'when) | |
771 (doctor-put-meaning while 'when) | |
772 (doctor-put-meaning since 'when) | |
773 (doctor-put-meaning rms 'rms) | |
774 (doctor-put-meaning stallman 'rms) | |
775 (doctor-put-meaning school 'school) | |
776 (doctor-put-meaning schools 'school) | |
777 (doctor-put-meaning skool 'school) | |
778 (doctor-put-meaning grade 'school) | |
779 (doctor-put-meaning grades 'school) | |
780 (doctor-put-meaning teacher 'school) | |
781 (doctor-put-meaning teachers 'school) | |
782 (doctor-put-meaning classes 'school) | |
783 (doctor-put-meaning professor 'school) | |
784 (doctor-put-meaning prof 'school) | |
785 (doctor-put-meaning profs 'school) | |
786 (doctor-put-meaning professors 'school) | |
787 (doctor-put-meaning mit 'school) | |
788 (doctor-put-meaning emacs 'eliza) | |
789 (doctor-put-meaning eliza 'eliza) | |
790 (doctor-put-meaning liza 'eliza) | |
791 (doctor-put-meaning elisa 'eliza) | |
792 (doctor-put-meaning weizenbaum 'eliza) | |
793 (doctor-put-meaning doktor 'eliza) | |
794 (doctor-put-meaning atheletics 'sports) | |
795 (doctor-put-meaning baseball 'sports) | |
796 (doctor-put-meaning basketball 'sports) | |
797 (doctor-put-meaning football 'sports) | |
798 (doctor-put-meaning frisbee 'sports) | |
799 (doctor-put-meaning gym 'sports) | |
800 (doctor-put-meaning gymnastics 'sports) | |
801 (doctor-put-meaning hockey 'sports) | |
802 (doctor-put-meaning lacrosse 'sports) | |
803 (doctor-put-meaning soccer 'sports) | |
804 (doctor-put-meaning softball 'sports) | |
805 (doctor-put-meaning sports 'sports) | |
806 (doctor-put-meaning swimming 'sports) | |
807 (doctor-put-meaning swim 'sports) | |
808 (doctor-put-meaning tennis 'sports) | |
809 (doctor-put-meaning volleyball 'sports) | |
810 (doctor-put-meaning math 'math) | |
811 (doctor-put-meaning mathematics 'math) | |
812 (doctor-put-meaning mathematical 'math) | |
813 (doctor-put-meaning theorem 'math) | |
814 (doctor-put-meaning axiom 'math) | |
815 (doctor-put-meaning lemma 'math) | |
816 (doctor-put-meaning algebra 'math) | |
817 (doctor-put-meaning algebraic 'math) | |
818 (doctor-put-meaning trig 'math) | |
819 (doctor-put-meaning trigonometry 'math) | |
820 (doctor-put-meaning trigonometric 'math) | |
821 (doctor-put-meaning geometry 'math) | |
822 (doctor-put-meaning geometric 'math) | |
823 (doctor-put-meaning calculus 'math) | |
824 (doctor-put-meaning arithmetic 'math) | |
825 (doctor-put-meaning zippy 'zippy) | |
826 (doctor-put-meaning zippy 'zippy) | |
827 (doctor-put-meaning pinhead 'zippy) | |
828 (doctor-put-meaning chat 'chat) | |
829 | |
830 ;;;###autoload | |
831 (defun doctor () | |
832 "Switch to *doctor* buffer and start giving psychotherapy." | |
833 (interactive) | |
834 (switch-to-buffer "*doctor*") | |
835 (doctor-mode)) | |
836 | |
837 (defun doctor-ret-or-read (arg) | |
838 "Insert a newline if preceding character is not a newline. | |
839 Otherwise call the Doctor to parse preceding sentence." | |
840 (interactive "*p") | |
841 (if (= (preceding-char) ?\n) | |
842 (doctor-read-print) | |
843 (newline arg))) | |
844 | |
845 (defun doctor-read-print nil | |
846 "top level loop" | |
847 (interactive) | |
848 (let ((sent (doctor-readin))) | |
849 (insert "\n") | |
850 (setq lincount (1+ lincount)) | |
851 (doctor-doc sent) | |
852 (insert "\n") | |
853 (setq bak sent))) | |
854 | |
855 (defun doctor-readin nil | |
856 "Read a sentence. Return it as a list of words." | |
857 (let (sentence) | |
858 (backward-sentence 1) | |
859 (while (not (eobp)) | |
860 (setq sentence (append sentence (list (doctor-read-token))))) | |
861 sentence)) | |
862 | |
863 (defun doctor-read-token () | |
864 "read one word from buffer" | |
865 (prog1 (intern (downcase (buffer-substring (point) | |
866 (progn | |
867 (forward-word 1) | |
868 (point))))) | |
869 (re-search-forward "\\Sw*"))) | |
870 | |
871 ;; Main processing function for sentences that have been read. | |
872 | |
873 (defun doctor-doc (sent) | |
874 (cond | |
875 ((equal sent '(foo)) | |
876 (doctor-type '(bar! ($ please)($ continue)))) | |
877 ((member sent howareyoulst) | |
878 (doctor-type '(i\'m ok \. ($ describe) yourself \.))) | |
879 ((or (member sent '((good bye) (see you later) (i quit) (so long) | |
880 (go away) (get lost))) | |
881 (memq (car sent) | |
882 '(bye halt break quit done exit goodbye | |
883 bye\, stop pause goodbye\, stop pause))) | |
884 (doctor-type ($ bye))) | |
885 ((and (eq (car sent) 'you) | |
886 (memq (doctor-cadr sent) abusewords)) | |
887 (setq found (doctor-cadr sent)) | |
888 (doctor-type ($ abuselst))) | |
889 ((eq (car sent) 'whatmeans) | |
890 (doctor-def (doctor-cadr sent))) | |
891 ((equal sent '(parse)) | |
892 (doctor-type (list 'subj '= subj ", " | |
893 'verb '= verb "\n" | |
894 'object 'phrase '= obj "," | |
895 'noun 'form '= object "\n" | |
896 'current 'keyword 'is found | |
897 ", " | |
898 'most 'recent 'possessive | |
899 'is owner "\n" | |
900 'sentence 'used 'was | |
901 "..." | |
902 '(// bak)))) | |
903 ;; ((eq (car sent) 'forget) | |
904 ;; (set (doctor-cadr sent) nil) | |
905 ;; (doctor-type '(($ isee)($ please) | |
906 ;; ($ continue)\.))) | |
907 (t | |
908 (if (doctor-defq sent) (doctor-define sent found)) | |
909 (if (> (length sent) 12)(doctor-shorten sent)) | |
910 (setq sent (doctor-correct-spelling (doctor-replace sent replist))) | |
911 (cond ((and (not (memq 'me sent))(not (memq 'i sent)) | |
912 (memq 'am sent)) | |
913 (setq sent (doctor-replace sent '((am . (are))))))) | |
914 (cond ((equal (car sent) 'yow) (doctor-zippy)) | |
915 ((< (length sent) 2) | |
916 (cond ((eq (doctor-meaning (car sent)) 'howdy) | |
917 (doctor-howdy)) | |
918 (t (doctor-short)))) | |
919 (t | |
920 (if (memq 'am sent) | |
921 (setq sent (doctor-replace sent '((me . (i)))))) | |
922 (setq sent (doctor-fixup sent)) | |
923 (if (and (eq (car sent) 'do) (eq (doctor-cadr sent) 'not)) | |
924 (cond ((zerop (random 3)) | |
925 (doctor-type '(are you ($ afraidof) that \?))) | |
926 ((zerop (random 2)) | |
927 (doctor-type '(don\'t tell me what to do \. i am the | |
928 psychiatrist here!)) | |
929 (doctor-rthing)) | |
930 (t | |
931 (doctor-type '(($ whysay) that i shouldn\'t | |
932 (doctor-cddr sent) | |
933 \?)))) | |
934 (doctor-go (doctor-wherego sent)))))))) | |
935 | |
936 ;; Things done to process sentences once read. | |
937 | |
938 (defun doctor-correct-spelling (sent) | |
939 "Correct the spelling and expand each word in sentence." | |
940 (if sent | |
941 (apply 'append (mapcar '(lambda (word) | |
942 (if (memq word typos) | |
943 (get (get word 'doctor-correction) 'doctor-expansion) | |
944 (list word))) | |
945 sent)))) | |
946 | |
947 (defun doctor-shorten (sent) | |
948 "Make a sentence managably short using a few hacks." | |
949 (let (foo | |
950 retval | |
951 (temp '(because but however besides anyway until | |
952 while that except why how))) | |
953 (while temp | |
954 (setq foo (memq (car temp) sent)) | |
955 (if (and foo | |
956 (> (length foo) 3)) | |
957 (setq sent foo | |
958 sent (doctor-fixup sent) | |
959 temp nil | |
960 retval t) | |
961 (setq temp (cdr temp)))) | |
962 retval)) | |
963 | |
964 (defun doctor-define (sent found) | |
965 (doctor-svo sent found 1 nil) | |
966 (and | |
967 (doctor-nounp subj) | |
968 (not (doctor-pronounp subj)) | |
969 subj | |
970 (doctor-meaning object) | |
971 (put subj 'doctor-meaning (doctor-meaning object)) | |
972 t)) | |
973 | |
974 (defun doctor-defq (sent) | |
975 "Set global var FOUND to first keyword found in sentence SENT." | |
976 (setq found nil) | |
977 (let ((temp '(means applies mean refers refer related | |
978 similar defined associated linked like same))) | |
979 (while temp | |
980 (if (memq (car temp) sent) | |
981 (setq found (car temp) | |
982 temp nil) | |
983 (setq temp (cdr temp))))) | |
984 found) | |
985 | |
986 (defun doctor-def (x) | |
987 (progn | |
988 (doctor-type (list 'the 'word x 'means (doctor-meaning x) 'to 'me)) | |
989 nil)) | |
990 | |
991 (defun doctor-forget () | |
992 "Delete the last element of the history list." | |
993 (setq history (reverse (cdr (reverse history))))) | |
994 | |
995 (defun doctor-query (x) | |
996 "Prompt for a line of input from the minibuffer until a noun or verb is seen. | |
997 Put dialogue in buffer." | |
998 (let (a | |
999 (prompt (concat (doctor-make-string x) | |
1000 " what \? ")) | |
1001 retval) | |
1002 (while (not retval) | |
1003 (while (not a) | |
1004 (insert ?\n | |
1005 prompt | |
1006 (read-string prompt) | |
1007 ?\n) | |
1008 (setq a (doctor-readin))) | |
1009 (while (and a (not retval)) | |
1010 (cond ((doctor-nounp (car a)) | |
1011 (setq retval (car a))) | |
1012 ((doctor-verbp (car a)) | |
1013 (setq retval (doctor-build | |
1014 (doctor-build x " ") | |
1015 (car a)))) | |
1016 ((setq a (cdr a)))))) | |
1017 retval)) | |
1018 | |
1019 (defun doctor-subjsearch (sent key type) | |
1020 "Search for the subject of a sentence SENT, looking for the noun closest | |
1021 to and preceding KEY by at least TYPE words. Set global variable subj to | |
1022 the subject noun, and return the portion of the sentence following it." | |
1023 (let ((i (- (length sent) (length (memq key sent)) type))) | |
1024 (while (and (> i -1) (not (doctor-nounp (nth i sent)))) | |
1025 (setq i (1- i))) | |
1026 (cond ((> i -1) | |
1027 (setq subj (nth i sent)) | |
1028 (nthcdr (1+ i) sent)) | |
1029 (t | |
1030 (setq subj 'you) | |
1031 nil)))) | |
1032 | |
1033 (defun doctor-nounp (x) | |
1034 "Returns t if the symbol argument is a noun." | |
1035 (or (doctor-pronounp x) | |
1036 (not (or (doctor-verbp x) | |
1037 (equal x 'not) | |
1038 (doctor-prepp x) | |
1039 (doctor-modifierp x) )) )) | |
1040 | |
1041 (defun doctor-pronounp (x) | |
1042 "Returns t if the symbol argument is a pronoun." | |
1043 (memq x '( | |
1044 i me mine myself | |
1045 we us ours ourselves ourself | |
1046 you yours yourself yourselves | |
1047 he him himself she hers herself | |
1048 it that those this these things thing | |
1049 they them themselves theirs | |
1050 anybody everybody somebody | |
1051 anyone everyone someone | |
1052 anything something everything))) | |
1053 | |
1054 (mapcar (function (lambda (x) (put x 'doctor-sentence-type 'verb))) | |
1055 '(abort aborted aborts ask asked asks am | |
1056 applied applies apply are associate | |
1057 associated ate | |
1058 be became become becomes becoming | |
1059 been being believe belived believes | |
1060 bit bite bites bore bored bores boring bought buy buys buying | |
1061 call called calling calls came can caught catch come | |
1062 contract contracted contracts control controlled controls | |
1063 could croak croaks croaked cut cuts | |
1064 dare dared define defines dial dialed dials did die died dies | |
1065 dislike disliked | |
1066 dislikes do does drank drink drinks drinking | |
1067 drive drives driving drove dying | |
1068 eat eating eats expand expanded expands | |
1069 expect expected expects expel expels expeled expelled | |
1070 explain explained explains | |
1071 fart farts feel feels felt fight fights find finds finding | |
1072 forget forgets forgot fought found fuck fucked | |
1073 fucking fucks | |
1074 gave get gets getting give gives go goes going gone got gotten | |
1075 had harm harms has hate hated hates have having | |
1076 hear heard hears hearing help helped helping helps | |
1077 hit hits hope hoped hopes hurt hurts | |
1078 implies imply is | |
1079 join joined joins jump jumped jumps | |
1080 keep keeping keeps kept | |
1081 kill killed killing kills kiss kissed kisses kissing | |
1082 knew know knows | |
1083 laid lay lays let lets lie lied lies like liked likes | |
1084 liking listen listens | |
1085 login look looked looking looks | |
1086 lose losing lost | |
1087 love loved loves loving | |
1088 luse lusing lust lusts | |
1089 made make makes making may mean means meant might | |
1090 move moved moves moving must | |
1091 need needed needs | |
1092 order ordered orders ought | |
1093 paid pay pays pick picked picking picks | |
1094 placed placing prefer prefers put puts | |
1095 ran rape raped rapes | |
1096 read reading reads recall receive received receives | |
1097 refer refered referred refers | |
1098 relate related relates remember remembered remembers | |
1099 romp romped romps run running runs | |
1100 said sang sat saw say says | |
1101 screw screwed screwing screws scrod see sees seem seemed | |
1102 seems seen sell selling sells | |
1103 send sendind sends sent shall shoot shot should | |
1104 sing sings sit sits sitting sold studied study | |
1105 take takes taking talk talked talking talks tell tells telling | |
1106 think thinks | |
1107 thought told took tooled touch touched touches touching | |
1108 transfer transfered transfers transmit transmits transmitted | |
1109 type types types typing | |
1110 walk walked walking walks want wanted wants was watch | |
1111 watched watching went were will wish would work worked works | |
1112 write writes writing wrote use used uses using)) | |
1113 | |
1114 (defun doctor-verbp (x) (if (symbolp x) | |
1115 (eq (get x 'doctor-sentence-type) 'verb))) | |
1116 | |
1117 (defun doctor-plural (x) | |
1118 "Form the plural of the word argument." | |
1119 (let ((foo (doctor-make-string x))) | |
1120 (cond ((string-equal (substring foo -1) "s") | |
1121 (cond ((string-equal (substring foo -2 -1) "s") | |
1122 (intern (concat foo "es"))) | |
1123 (t x))) | |
1124 ((string-equal (substring foo -1) "y") | |
1125 (intern (concat (substring foo 0 -1) | |
1126 "ies"))) | |
1127 (t (intern (concat foo "s")))))) | |
1128 | |
1129 (defun doctor-setprep (sent key) | |
1130 (let ((val) | |
1131 (foo (memq key sent))) | |
1132 (cond ((doctor-prepp (doctor-cadr foo)) | |
1133 (setq val (doctor-getnoun (doctor-cddr foo))) | |
1134 (cond (val val) | |
1135 (t 'something))) | |
1136 ((doctor-articlep (doctor-cadr foo)) | |
1137 (setq val (doctor-getnoun (doctor-cddr foo))) | |
1138 (cond (val (doctor-build (doctor-build (doctor-cadr foo) " ") val)) | |
1139 (t 'something))) | |
1140 (t 'something)))) | |
1141 | |
1142 (defun doctor-getnoun (x) | |
1143 (cond ((null x)(setq object 'something)) | |
1144 ((atom x)(setq object x)) | |
1145 ((eq (length x) 1) | |
1146 (setq object (cond | |
1147 ((doctor-nounp (setq object (car x))) object) | |
1148 (t (doctor-query object))))) | |
1149 ((eq (car x) 'to) | |
1150 (doctor-build 'to\ (doctor-getnoun (cdr x)))) | |
1151 ((doctor-prepp (car x)) | |
1152 (doctor-getnoun (cdr x))) | |
1153 ((not (doctor-nounp (car x))) | |
1154 (doctor-build (doctor-build (cdr (assq (car x) | |
1155 (append | |
1156 '((a . this) | |
1157 (some . this) | |
1158 (one . that)) | |
1159 (list | |
1160 (cons | |
1161 (car x) (car x)))))) | |
1162 " ") | |
1163 (doctor-getnoun (cdr x)))) | |
1164 (t (setq object (car x))) )) | |
1165 | |
1166 (defun doctor-modifierp (x) | |
1167 (or (doctor-adjectivep x) | |
1168 (doctor-adverbp x) | |
1169 (doctor-othermodifierp x))) | |
1170 | |
1171 (defun doctor-adjectivep (x) | |
1172 (or (numberp x) | |
1173 (doctor-nmbrp x) | |
1174 (doctor-articlep x) | |
1175 (doctor-colorp x) | |
1176 (doctor-sizep x) | |
1177 (doctor-possessivepronounp x))) | |
1178 | |
1179 (defun doctor-adverbp (xx) | |
1180 (string-equal (substring (doctor-make-string xx) -2) "ly")) | |
1181 | |
1182 (defun doctor-articlep (x) | |
1183 (memq x '(the a an))) | |
1184 | |
1185 (defun doctor-nmbrp (x) | |
1186 (memq x '(one two three four five six seven eight nine ten | |
1187 eleven twelve thirteen fourteen fifteen | |
1188 sixteen seventeen eighteen nineteen | |
1189 twenty thirty forty fifty sixty seventy eighty ninety | |
1190 hundred thousand million billion | |
1191 half quarter | |
1192 first second third fourth fifth | |
1193 sixth seventh eighth nineth tenth))) | |
1194 | |
1195 (defun doctor-colorp (x) | |
1196 (memq x '(beige black blue brown crimson | |
1197 gray grey green | |
1198 orange pink purple red tan tawny | |
1199 violet white yellow))) | |
1200 | |
1201 (defun doctor-sizep (x) | |
1202 (memq x '(big large tall fat wide thick | |
1203 small petite short thin skinny))) | |
1204 | |
1205 (defun doctor-possessivepronounp (x) | |
1206 (memq x '(my your his her our their))) | |
1207 | |
1208 (defun doctor-othermodifierp (x) | |
1209 (memq x '(all also always amusing any anyway associated awesome | |
1210 bad beautiful best better but certain clear | |
1211 ever every fantastic fun funny | |
1212 good great gross growdy however if ignorant | |
1213 less linked losing lusing many more much | |
1214 never nice obnoxious often poor pretty real related rich | |
1215 similar some stupid super superb | |
1216 terrible terrific too total tubular ugly very))) | |
1217 | |
1218 (defun doctor-prepp (x) | |
1219 (memq x '(about above after around as at | |
1220 before beneath behind beside between by | |
1221 for from in inside into | |
1222 like near next of on onto over | |
1223 same through thru to toward towards | |
1224 under underneath with without))) | |
1225 | |
1226 (defun doctor-remember (thing) | |
1227 (cond ((null history) | |
1228 (setq history (list thing))) | |
1229 (t (setq history (append history (list thing)))))) | |
1230 | |
1231 (defun doctor-type (x) | |
1232 (setq x (doctor-fix-2 x)) | |
1233 (doctor-txtype (doctor-assm x))) | |
1234 | |
1235 (defun doctor-fixup (sent) | |
1236 (setq sent (append | |
1237 (cdr | |
1238 (assq (car sent) | |
1239 (append | |
1240 '((me i) | |
1241 (him he) | |
1242 (her she) | |
1243 (them they) | |
1244 (okay) | |
1245 (well) | |
1246 (sigh) | |
1247 (hmm) | |
1248 (hmmm) | |
1249 (hmmmm) | |
1250 (hmmmmm) | |
1251 (gee) | |
1252 (sure) | |
1253 (great) | |
1254 (oh) | |
1255 (fine) | |
1256 (ok) | |
1257 (no)) | |
1258 (list (list (car sent) | |
1259 (car sent)))))) | |
1260 (cdr sent))) | |
1261 (doctor-fix-2 sent)) | |
1262 | |
1263 (defun doctor-fix-2 (sent) | |
1264 (let ((foo sent)) | |
1265 (while foo | |
1266 (if (and (eq (car foo) 'me) | |
1267 (doctor-verbp (doctor-cadr foo))) | |
1268 (rplaca foo 'i) | |
1269 (cond ((eq (car foo) 'you) | |
1270 (cond ((memq (doctor-cadr foo) '(am be been is)) | |
1271 (rplaca (cdr foo) 'are)) | |
1272 ((memq (doctor-cadr foo) '(has)) | |
1273 (rplaca (cdr foo) 'have)) | |
1274 ((memq (doctor-cadr foo) '(was)) | |
1275 (rplaca (cdr foo) 'were)))) | |
1276 ((equal (car foo) 'i) | |
1277 (cond ((memq (doctor-cadr foo) '(are is be been)) | |
1278 (rplaca (cdr foo) 'am)) | |
1279 ((memq (doctor-cadr foo) '(were)) | |
1280 (rplaca (cdr foo) 'was)) | |
1281 ((memq (doctor-cadr foo) '(has)) | |
1282 (rplaca (cdr foo) 'have)))) | |
1283 ((and (doctor-verbp (car foo)) | |
1284 (eq (doctor-cadr foo) 'i) | |
1285 (not (doctor-verbp (car (doctor-cddr foo))))) | |
1286 (rplaca (cdr foo) 'me)) | |
1287 ((and (eq (car foo) 'a) | |
1288 (doctor-vowelp (string-to-char | |
1289 (doctor-make-string (doctor-cadr foo))))) | |
1290 (rplaca foo 'an)) | |
1291 ((and (eq (car foo) 'an) | |
1292 (not (doctor-vowelp (string-to-char | |
1293 (doctor-make-string (doctor-cadr foo)))))) | |
1294 (rplaca foo 'a))) | |
1295 (setq foo (cdr foo)))) | |
1296 sent)) | |
1297 | |
1298 (defun doctor-vowelp (x) | |
1299 (memq x '(?a ?e ?i ?o ?u))) | |
1300 | |
1301 (defun doctor-replace (sent rlist) | |
1302 "Replace any element of SENT that is the car of a replacement | |
1303 element pair in RLIST." | |
1304 (apply 'append | |
1305 (mapcar | |
1306 (function | |
1307 (lambda (x) | |
1308 (cdr (or (assq x rlist) ; either find a replacement | |
1309 (list x x))))) ; or fake an identity mapping | |
1310 sent))) | |
1311 | |
1312 (defun doctor-wherego (sent) | |
1313 (cond ((null sent)($ whereoutp)) | |
1314 ((null (doctor-meaning (car sent))) | |
1315 (doctor-wherego (cond ((zerop (random 2)) | |
1316 (reverse (cdr sent))) | |
1317 (t (cdr sent))))) | |
1318 (t | |
1319 (setq found (car sent)) | |
1320 (doctor-meaning (car sent))))) | |
1321 | |
1322 (defun doctor-svo (sent key type mem) | |
1323 "Find subject, verb and object in sentence SENT with focus on word KEY. | |
1324 TYPE is number of words preceding KEY to start looking for subject. | |
1325 MEM is t if results are to be put on Doctor's memory stack. | |
1326 Return in the global variables SUBJ, VERB and OBJECT." | |
621 | 1327 (let ((foo (doctor-subjsearch sent key type))) |
400 | 1328 (or foo |
1329 (setq foo sent | |
1330 mem nil)) | |
1331 (while (and (null (doctor-verbp (car foo))) (cdr foo)) | |
1332 (setq foo (cdr foo))) | |
1333 (setq verb (car foo)) | |
1334 (setq obj (doctor-getnoun (cdr foo))) | |
1335 (cond ((eq object 'i)(setq object 'me)) | |
1336 ((eq subj 'me)(setq subj 'i))) | |
1337 (cond (mem (doctor-remember (list subj verb obj)))))) | |
1338 | |
1339 (defun doctor-possess (sent key) | |
1340 "Set possessive in SENT for keyword KEY. | |
1341 Hack on previous word, setting global variable OWNER to correct result." | |
1342 (let* ((i (- (length sent) (length (memq key sent)) 1)) | |
1343 (prev (if (< i 0) 'your | |
1344 (nth i sent)))) | |
1345 (setq owner (if (or (doctor-possessivepronounp prev) | |
1346 (string-equal "s" | |
1347 (substring (doctor-make-string prev) | |
1348 -1))) | |
1349 prev | |
1350 'your)))) | |
1351 | |
1352 ;; Output of replies. | |
1353 | |
1354 (defun doctor-txtype (ans) | |
1355 "Output to buffer a list of symbols or strings as a sentence." | |
1356 (setq *print-upcase* t *print-space* nil) | |
1357 (mapcar 'doctor-type-symbol ans) | |
1358 (insert "\n")) | |
1359 | |
1360 (defun doctor-type-symbol (word) | |
1361 "Output a symbol to the buffer with some fancy case and spacing hacks." | |
1362 (setq word (doctor-make-string word)) | |
1363 (if (string-equal word "i") (setq word "I")) | |
1364 (if *print-upcase* | |
1365 (progn | |
1366 (setq word (capitalize word)) | |
1367 (if *print-space* | |
1368 (insert " ")))) | |
1369 (cond ((or (string-match "^[.,;:?! ]" word) | |
1370 (not *print-space*)) | |
1371 (insert word)) | |
1372 (t (insert ?\ word))) | |
1373 (if (> (current-column) fill-column) | |
1374 (apply auto-fill-function nil)) | |
1375 (setq *print-upcase* (string-match "[.?!]$" word) | |
1376 *print-space* t)) | |
1377 | |
1378 (defun doctor-build (str1 str2) | |
1379 "Make a symbol out of the concatenation of the two non-list arguments." | |
1380 (cond ((null str1) str2) | |
1381 ((null str2) str1) | |
1382 ((and (atom str1) | |
1383 (atom str2)) | |
1384 (intern (concat (doctor-make-string str1) | |
1385 (doctor-make-string str2)))) | |
1386 (t nil))) | |
1387 | |
1388 (defun doctor-make-string (obj) | |
1389 (cond ((stringp obj) obj) | |
1390 ((symbolp obj) (symbol-name obj)) | |
1391 ((numberp obj) (int-to-string obj)) | |
1392 (t ""))) | |
1393 | |
1394 (defun doctor-concat (x y) | |
1395 "Like append, but force atomic arguments to be lists." | |
1396 (append | |
1397 (if (and x (atom x)) (list x) x) | |
1398 (if (and y (atom y)) (list y) y))) | |
1399 | |
1400 (defun doctor-assm (proto) | |
1401 (cond ((null proto) nil) | |
1402 ((atom proto) (list proto)) | |
1403 ((atom (car proto)) | |
1404 (cons (car proto) (doctor-assm (cdr proto)))) | |
1405 (t (doctor-concat (doctor-assm (eval (car proto))) (doctor-assm (cdr proto)))))) | |
1406 | |
1407 ;; Functions that handle specific words or meanings when found. | |
1408 | |
1409 (defun doctor-go (destination) | |
1410 "Call a `doctor-*' function." | |
1411 (funcall (intern (concat "doctor-" (doctor-make-string destination))))) | |
1412 | |
1413 (defun doctor-desire1 () | |
1414 (doctor-go ($ whereoutp))) | |
1415 | |
1416 (defun doctor-huh () | |
1417 (cond ((< (length sent) 9) (doctor-type ($ huhlst))) | |
1418 (t (doctor-type ($ longhuhlst))))) | |
1419 | |
1420 (defun doctor-rthing () (doctor-type ($ thlst))) | |
1421 | |
1422 (defun doctor-remem () (cond ((null history)(doctor-huh)) | |
1423 ((doctor-type ($ remlst))))) | |
1424 | |
1425 (defun doctor-howdy () | |
1426 (cond ((not howdyflag) | |
1427 (doctor-type '(($ hello) what brings you to see me \?)) | |
1428 (setq howdyflag t)) | |
1429 (t | |
1430 (doctor-type '(($ ibelieve) we\'ve introduced ourselves already \.)) | |
1431 (doctor-type '(($ please) ($ describe) ($ things) \.))))) | |
1432 | |
1433 (defun doctor-when () | |
1434 (cond ((< (length (memq found sent)) 3)(doctor-short)) | |
1435 (t | |
1436 (setq sent (cdr (memq found sent))) | |
1437 (setq sent (doctor-fixup sent)) | |
1438 (doctor-type '(($ whatwhen)(// sent) \?))))) | |
1439 | |
1440 (defun doctor-conj () | |
1441 (cond ((< (length (memq found sent)) 4)(doctor-short)) | |
1442 (t | |
1443 (setq sent (cdr (memq found sent))) | |
1444 (setq sent (doctor-fixup sent)) | |
1445 (cond ((eq (car sent) 'of) | |
1446 (doctor-type '(are you ($ sure) that is the real reason \?)) | |
1447 (setq things (cons (cdr sent) things))) | |
1448 (t | |
1449 (doctor-remember sent) | |
1450 (doctor-type ($ beclst))))))) | |
1451 | |
1452 (defun doctor-short () | |
1453 (cond ((= (car repetitive-shortness) (1- lincount)) | |
1454 (rplacd repetitive-shortness | |
1455 (1+ (cdr repetitive-shortness)))) | |
1456 (t | |
1457 (rplacd repetitive-shortness 1))) | |
1458 (rplaca repetitive-shortness lincount) | |
1459 (cond ((> (cdr repetitive-shortness) 6) | |
1460 (cond ((not **mad**) | |
1461 (doctor-type '(($ areyou) | |
1462 just trying to see what kind of things | |
1463 i have in my vocabulary \? please try to | |
1464 carry on a reasonable conversation!)) | |
1465 (setq **mad** t)) | |
1466 (t | |
1467 (doctor-type '(i give up \. you need a lesson in creative | |
1468 writing \.\.\.)) | |
1469 ;;(push monosyllables observation-list) | |
1470 ))) | |
1471 (t | |
1472 (cond ((equal sent (doctor-assm '(yes))) | |
1473 (doctor-type '(($ isee) ($ inter) ($ whysay) this is so \?))) | |
1474 ((equal sent (doctor-assm '(because))) | |
1475 (doctor-type ($ shortbeclst))) | |
1476 ((equal sent (doctor-assm '(no))) | |
1477 (doctor-type ($ neglst))) | |
1478 (t (doctor-type ($ shortlst))))))) | |
1479 | |
1480 (defun doctor-alcohol () (doctor-type ($ drnk))) | |
1481 | |
1482 (defun doctor-desire () | |
1483 (let ((foo (memq found sent))) | |
1484 (cond ((< (length foo) 2) | |
1485 (doctor-go (doctor-build (doctor-meaning found) 1))) | |
1486 ((memq (doctor-cadr foo) '(a an)) | |
1487 (rplacd foo (append '(to have) (cdr foo))) | |
1488 (doctor-svo sent found 1 nil) | |
1489 (doctor-remember (list subj 'would 'like obj)) | |
1490 (doctor-type ($ whywant))) | |
1491 ((not (eq (doctor-cadr foo) 'to)) | |
1492 (doctor-go (doctor-build (doctor-meaning found) 1))) | |
1493 (t | |
1494 (doctor-svo sent found 1 nil) | |
1495 (doctor-remember (list subj 'would 'like obj)) | |
1496 (doctor-type ($ whywant)))))) | |
1497 | |
1498 (defun doctor-drug () | |
1499 (doctor-type ($ drugs)) | |
1500 (doctor-remember (list 'you 'used found))) | |
1501 | |
1502 (defun doctor-toke () | |
1503 (doctor-type ($ toklst))) | |
1504 | |
1505 (defun doctor-state () | |
1506 (doctor-type ($ states))(doctor-remember (list 'you 'were found))) | |
1507 | |
1508 (defun doctor-mood () | |
1509 (doctor-type ($ moods))(doctor-remember (list 'you 'felt found))) | |
1510 | |
1511 (defun doctor-fear () | |
1512 (setq feared (doctor-setprep sent found)) | |
1513 (doctor-type ($ fears)) | |
1514 (doctor-remember (list 'you 'were 'afraid 'of feared))) | |
1515 | |
1516 (defun doctor-hate () | |
1517 (doctor-svo sent found 1 t) | |
1518 (cond ((memq 'not sent) (doctor-forget) (doctor-huh)) | |
1519 ((equal subj 'you) | |
1520 (doctor-type '(why do you (// verb)(// obj) \?))) | |
1521 (t (doctor-type '(($ whysay)(list subj verb obj)))))) | |
1522 | |
1523 (defun doctor-symptoms () | |
1524 (doctor-type '(($ maybe) you should consult a doctor of medicine\, | |
1525 i am a psychiatrist \.))) | |
1526 | |
1527 (defun doctor-hates () | |
1528 (doctor-svo sent found 1 t) | |
1529 (doctor-hates1)) | |
1530 | |
1531 (defun doctor-hates1 () | |
1532 (doctor-type '(($ whysay)(list subj verb obj)))) | |
1533 | |
1534 (defun doctor-loves () | |
1535 (doctor-svo sent found 1 t) | |
1536 (doctor-qloves)) | |
1537 | |
1538 (defun doctor-qloves () | |
1539 (doctor-type '(($ bother)(list subj verb obj) \?))) | |
1540 | |
1541 (defun doctor-love () | |
1542 (doctor-svo sent found 1 t) | |
1543 (cond ((memq 'not sent) (doctor-forget) (doctor-huh)) | |
1544 ((memq 'to sent) (doctor-hates1)) | |
1545 (t | |
1546 (cond ((equal object 'something) | |
1547 (setq object '(this person you love)))) | |
1548 (cond ((equal subj 'you) | |
1549 (setq lover obj) | |
1550 (cond ((equal lover '(this person you love)) | |
1551 (setq lover '(your partner)) | |
1552 (doctor-forget) | |
1553 (doctor-type '(with whom are you in love \?))) | |
1554 ((doctor-type '(($ please) | |
1555 ($ describe) | |
1556 ($ relation) | |
1557 (// lover) | |
1558 \.))))) | |
1559 ((equal subj 'i) | |
1560 (doctor-txtype '(we were discussing you!))) | |
1561 (t (doctor-forget) | |
1562 (setq obj 'someone) | |
1563 (setq verb (doctor-build verb 's)) | |
1564 (doctor-qloves)))))) | |
1565 | |
1566 (defun doctor-mach () | |
1567 (setq found (doctor-plural found)) | |
1568 (doctor-type ($ machlst))) | |
1569 | |
1570 (defun doctor-sexnoun () (doctor-sexverb)) | |
1571 | |
1572 (defun doctor-sexverb () | |
1573 (if (or (memq 'me sent)(memq 'myself sent)(memq 'i sent)) | |
1574 (doctor-foul) | |
1575 (doctor-type ($ sexlst)))) | |
1576 | |
1577 (defun doctor-death () (doctor-type ($ deathlst))) | |
1578 | |
1579 (defun doctor-foul () | |
1580 (doctor-type ($ foullst))) | |
1581 | |
1582 (defun doctor-family () | |
1583 (doctor-possess sent found) | |
1584 (doctor-type ($ famlst))) | |
1585 | |
1586 ;; I did not add this -- rms. | |
1587 ;; But he might have removed it. I put it back. --roland | |
1588 (defun doctor-rms () | |
1589 (cond (rms-flag (doctor-type ($ stallmanlst))) | |
1590 (t (setq rms-flag t) (doctor-type '(do you know Stallman \?))))) | |
1591 | |
1592 (defun doctor-school nil (doctor-type ($ schoollst))) | |
1593 | |
1594 (defun doctor-eliza () | |
1595 (cond (eliza-flag (doctor-type ($ elizalst))) | |
1596 (t (setq eliza-flag t) | |
1597 (doctor-type '((// found) \? hah ! | |
1598 ($ please) ($ continue) \.))))) | |
1599 | |
1600 (defun doctor-sports () (doctor-type ($ sportslst))) | |
1601 | |
1602 (defun doctor-math () (doctor-type ($ mathlst))) | |
1603 | |
1604 (defun doctor-zippy () | |
1605 (cond (zippy-flag (doctor-type ($ zippylst))) | |
1606 (t (setq zippy-flag t) | |
1607 (doctor-type '(yow! are we interactive yet \?))))) | |
1608 | |
1609 | |
1610 (defun doctor-chat () (doctor-type ($ chatlst))) | |
1611 | |
1612 (defun doctor-strangelove () | |
1613 (interactive) | |
1614 (insert "Mein fuhrer!!\n") | |
1615 (doctor-read-print)) | |
662
8a533acedb77
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
1616 |
8a533acedb77
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
621
diff
changeset
|
1617 ;;; doctor.el ends here |