help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Testing validity of a word


From: uzibalqa
Subject: Testing validity of a word
Date: Wed, 26 Jul 2023 00:21:09 +0000

I want to test whether a word is valid. Is there a package in Emacs for 
dictionary word lookup ?

Have constructed something like this, but of course the function lookup-word 
does not exist.

(defun is-valid-word (word)
  "Check if the WORD is valid using the Emacs dictionary."
  (let ((dict-info (lookup-word word)))
    (if (plist-get dict-info :found)
        t ; The word is valid.
      nil))) ; The word is not valid.

Is there a package in Emacs for dictionary word lookup ?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]