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