annotate lisp/play/doctor.el @ 650:39f0e62a8511

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