Function: doctor-correct-spelling
doctor-correct-spelling is a byte-compiled function defined in
doctor.el.gz.
Signature
(doctor-correct-spelling SENT)
Documentation
Correct the spelling and expand each word in sentence.
Source Code
;; Defined in /usr/src/emacs/lisp/play/doctor.el.gz
;; Things done to process sentences once read.
(defun doctor-correct-spelling (sent)
"Correct the spelling and expand each word in sentence."
(if sent
(apply 'append (mapcar (lambda (word)
(if (memq word doctor--typos)
(get (get word 'doctor-correction)
'doctor-expansion)
(list word)))
sent))))