Function: jinx--word-valid-p
jinx--word-valid-p is a natively compiled function defined in jinx.el.
Signature
(jinx--word-valid-p WORD)
Documentation
Return non-nil if WORD is valid.
WORD can also be a position.
Source Code
;; Defined in /nix/store/b5jnxgwmlp7hh60wfrx7amhrmrpfcqqi-emacs-packages-deps/share/emacs/site-lisp/elpa/jinx-20260926.912/jinx.el
(defun jinx--word-valid-p (word)
"Return non-nil if WORD is valid.
WORD can also be a position."
(unless (stringp word)
(setq word (buffer-substring-no-properties word (point))))
(or (member word jinx--session-words)
;; Allow capitalized words
(let (case-fold-search)
(and (string-match-p "\\`[[:upper:]][[:lower:]]+\\'" word)
(cl-loop for w in jinx--session-words
thereis (and (string-equal-ignore-case word w)
(string-match-p "\\`[[:lower:]]+\\'" w)))))
(cl-loop for dict in jinx--dicts
thereis (jinx--mod-check dict word))))