Skip to content
Fetches entries from the Unabridged Merriam-Webster dictionary website.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

This script fetches, parses, and displays dictionary entries from the Unabridged Merriam-Webster website. The entries are formatted as plain text for display in a terminal.


The Unabridged Merriam-Webster is subscription-based, and requires a login to access dictionary content. Login credentials for your account should be stored in as a function returning a 2-element list:

def auth():
    return ('', 'Pa$$w0rd')


The function below prompts for a word, executes, and displays the output in a new buffer.

(defun mw ()
  (let ((word (read-from-minibuffer "Lookup word: ")))
    (let ((buffname (format "*m-w: %s*" word))
          (cmd (format " %s" word)))
      (with-output-to-temp-buffer  buffname
        (shell-command cmd
        (pop-to-buffer buffname)))))
You can’t perform that action at this time.