Example: Word lookup by JSONValue token Macro (v11.0.3)

Putting aside the IO details (possibly more editor-dependent than you hope) of:

Mouse position -> word selection -> word text -> word replacement,

one approach to term lookup is to:

  1. Hold your lexicon of alternative terms as a Keyboard Maestro variable in JSON dictionary format, and
  2. use the Keyboard Maestro %JSONValue% token to the fetch specific Source -> Target matching string.

Broadly, using a three-term dummy lexicon, and illustrating the use of %JSONValue% with it:

Example- Word lookup by JSONValue token.kmmacros (3.0 KB)