Mercurial > emacs
comparison lisp/play/doctor.el @ 105642:5baebf489b9e
Ulrich Mueller <ulm at gentoo.org>
(doctor-adverbp): Exclude some nouns. (Bug#4565)
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 17 Oct 2009 03:08:56 +0000 |
parents | c6838f93406e |
children | 1d1d5d9bd884 |
comparison
equal
deleted
inserted
replaced
105641:f51e9b41be2c | 105642:5baebf489b9e |
---|---|
1188 (doctor-possessivepronounp x))) | 1188 (doctor-possessivepronounp x))) |
1189 | 1189 |
1190 (defun doctor-adverbp (xx) | 1190 (defun doctor-adverbp (xx) |
1191 (let ((xxstr (doctor-make-string xx))) | 1191 (let ((xxstr (doctor-make-string xx))) |
1192 (and (>= (length xxstr) 2) | 1192 (and (>= (length xxstr) 2) |
1193 (string-equal (substring (doctor-make-string xx) -2) "ly")))) | 1193 (string-equal (substring (doctor-make-string xx) -2) "ly") |
1194 (not (memq xx '(family fly jelly rally)))))) | |
1194 | 1195 |
1195 (defun doctor-articlep (x) | 1196 (defun doctor-articlep (x) |
1196 (memq x '(the a an))) | 1197 (memq x '(the a an))) |
1197 | 1198 |
1198 (defun doctor-nmbrp (x) | 1199 (defun doctor-nmbrp (x) |