aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/play
diff options
context:
space:
mode:
authorRichard M. Stallman2002-09-23 16:04:57 +0000
committerRichard M. Stallman2002-09-23 16:04:57 +0000
commitdaa6ddb5d6926516d1f82cffc3fdfbba16f372d8 (patch)
tree91f844529abab1213385666b68adc6e8d4d3e574 /lisp/play
parent0f7df8ac6ab7428289445a1109413d628f2a884a (diff)
downloademacs-daa6ddb5d6926516d1f82cffc3fdfbba16f372d8.tar.gz
emacs-daa6ddb5d6926516d1f82cffc3fdfbba16f372d8.zip
(doctor-doc): Add 2 question words.
(doctor-getnoun): Parse and save the complete object phrase.
Diffstat (limited to 'lisp/play')
-rw-r--r--lisp/play/doctor.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/play/doctor.el b/lisp/play/doctor.el
index 4254a99f27e..2f00b9dfb3a 100644
--- a/lisp/play/doctor.el
+++ b/lisp/play/doctor.el
@@ -905,7 +905,7 @@ Otherwise call the Doctor to parse preceding sentence."
905 'sentence 'used 'was 905 'sentence 'used 'was
906 "..." 906 "..."
907 '(doc// bak)))) 907 '(doc// bak))))
908 ((memq (car sent) '(do has have how when where who why)) 908 ((memq (car sent) '(are is do has have how when where who why))
909 (doctor-type (doc$ qlist))) 909 (doctor-type (doc$ qlist)))
910 ;; ((eq (car sent) 'forget) 910 ;; ((eq (car sent) 'forget)
911 ;; (set (cadr sent) nil) 911 ;; (set (cadr sent) nil)
@@ -1166,7 +1166,9 @@ the subject noun, and return the portion of the sentence following it."
1166 (car x) (car x)))))) 1166 (car x) (car x))))))
1167 " ") 1167 " ")
1168 (doctor-getnoun (cdr x)))) 1168 (doctor-getnoun (cdr x))))
1169 (t (setq object (car x))) )) 1169 (t (setq object (car x))
1170 (doctor-build (doctor-build (car x) " ") (doctor-getnoun (cdr x))))
1171 ))
1170 1172
1171(defun doctor-modifierp (x) 1173(defun doctor-modifierp (x)
1172 (or (doctor-adjectivep x) 1174 (or (doctor-adjectivep x)