unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: uzibalqa <uzibalqa@proton.me>
To: uzibalqa via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Testing validity of a word
Date: Wed, 26 Jul 2023 00:21:09 +0000	[thread overview]
Message-ID: <0iMfp4ZIF6AbexWeuBv10ON9NQqnHhsYhLbUaqzCte_f2yasnqcZbnZuHiCmWYiLZP_1DdWvaWLBlX0np-1eKeg-RUeySDbv8rya570hG9M=@proton.me> (raw)


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	other threads:[~2023-07-26  0:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26  0:21 uzibalqa [this message]
2023-07-26  1:33 ` [External] : Testing validity of a word 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='0iMfp4ZIF6AbexWeuBv10ON9NQqnHhsYhLbUaqzCte_f2yasnqcZbnZuHiCmWYiLZP_1DdWvaWLBlX0np-1eKeg-RUeySDbv8rya570hG9M=@proton.me' \
    --to=uzibalqa@proton.me \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).