GNU bug report logs -
#4565
23.1.50; [Patch] The doctor thinks that "family" is an adverb
Previous Next
Reported by: Ulrich Mueller <ulm <at> gentoo.org>
Date: Sun, 27 Sep 2009 15:05:12 UTC
Severity: minor
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4565 in the body.
You can then email your comments to 4565 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4565
; Package
emacs
.
(Sun, 27 Sep 2009 15:05:13 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ulrich Mueller <ulm <at> gentoo.org>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sun, 27 Sep 2009 15:05:13 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
When calling "psychoanalyze-pinhead" in Emacs from today's CVS trunk,
but with the yow.lines file restored from Emacs 21, it stops at a
phrase containing the word "family".
To reproduce:
$ emacs -Q
M-x doctor RET
While I'm in LEVITTOWN I thought I'd like to see the NUCLEAR FAMILY!!
RET RET
Actual behaviour:
Minibuffer prompt "family what ?" appears.
Expected behaviour:
Doctor printing an answer like "Tell me something about your family."
The problem is in function doctor-adverbp which recognises all words
ending with "ly" as adverbs. The patch included below fixes it for
some common words.
(Actually, there are many more non-adverbs ending with "ly". I've
limited it to words contained in the list of 850 words of Ogden's
Basic English, or in yow.lines.)
Ulrich
2009-09-27 Ulrich Mueller <ulm <at> gentoo.org>
* play/doctor.el (doctor-adverbp): Exclude some common nouns.
--- emacs-orig/lisp/play/doctor.el
+++ emacs/lisp/play/doctor.el
@@ -1190,7 +1190,8 @@
(defun doctor-adverbp (xx)
(let ((xxstr (doctor-make-string xx)))
(and (>= (length xxstr) 2)
- (string-equal (substring (doctor-make-string xx) -2) "ly"))))
+ (string-equal (substring (doctor-make-string xx) -2) "ly")
+ (not (memq xx '(family fly jelly rally))))))
(defun doctor-articlep (x)
(memq x '(the a an)))
Severity set to 'minor' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 03 Oct 2009 00:25:13 GMT)
Full text and
rfc822 format available.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Sat, 17 Oct 2009 03:20:05 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ulrich Mueller <ulm <at> gentoo.org>
:
bug acknowledged by developer.
(Sat, 17 Oct 2009 03:20:06 GMT)
Full text and
rfc822 format available.
Message #12 received at 4565-done <at> emacsbugs.donarmstrong.com (full text, mbox):
Thanks; applied.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sat, 14 Nov 2009 15:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 302 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.