Function: doctor-plural
doctor-plural is a byte-compiled function defined in doctor.el.gz.
Signature
(doctor-plural X)
Documentation
Form the plural of the word argument.
Source Code
;; Defined in /usr/src/emacs/lisp/play/doctor.el.gz
(defun doctor-plural (x)
"Form the plural of the word argument."
(let ((foo (doctor-make-string x)))
(cond ((string-equal (substring foo -1) "s")
(cond ((string-equal (substring foo -2 -1) "s")
(intern (concat foo "es")))
(t x)))
((string-equal (substring foo -1) "y")
(intern (concat (substring foo 0 -1)
"ies")))
(t (intern (concat foo "s"))))))