unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Testing validity of a word
@ 2023-07-26  0:21 uzibalqa
  2023-07-26  1:33 ` [External] : " Drew Adams
  2023-07-26 12:06 ` Emanuel Berg
  0 siblings, 2 replies; 10+ messages in thread
From: uzibalqa @ 2023-07-26  0:21 UTC (permalink / raw)
  To: uzibalqa via Users list for the GNU Emacs text editor


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 ?




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-07-26 19:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26  0:21 Testing validity of a word uzibalqa
2023-07-26  1:33 ` [External] : " Drew Adams
2023-07-26  1:40   ` uzibalqa
2023-07-26  2:27     ` uzibalqa
2023-07-26  4:21     ` Drew Adams
2023-07-26  2:32   ` uzibalqa
2023-07-26 12:06 ` Emanuel Berg
2023-07-26 17:08   ` uzibalqa
2023-07-26 17:45     ` Emanuel Berg
2023-07-26 19:07     ` Emanuel Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).