Is there a spelling library or command line tool that can be installed to use on macOS command line Terminal app?

  • 1
    Are you interested in spell checking what you enter at the terminal (commands, etc), or are you interested in invoking a spell checker from the command line to review a document? – Seamus Aug 15 '18 at 20:31
  • Interested in spell checking what I enter at the terminal. Thank you. – Kaleli Aug 16 '18 at 18:09

You have look installed on your system. You can also grep /usr/share/dict/words. Even, curl with the dict protocol using the match key could be useful for spelling. Both emacs and vim have spellcheck features.


A couple spell check tools available for macOS via Homebrew are listed below. See if they meet your needs:

  1. ispell: International Ispell is an interactive spell-checking program for Unix which supports a large number of European languages.

    To install via Homebrew run:

    brew install ispell

  2. GNU Aspell: GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell. It can either be used as a library or as an independent spell checker

    To install via Homebrew run:

    brew install aspell

  • What does it use for a dictionary? By that I mean does it include correct spellings for all commands that one might enter at the terminal? If not, it wouldn't seem to be very useful unless you like to write in a terminal app :) Or perhaps I misconstrue the OP's question? – Seamus Aug 15 '18 at 20:29
  • I have no idea about how both the apps work internally or how they store their dictionary. As I understand, OP is not seeking a spell checker to check for typos in the commands. – Nimesh Neema Aug 15 '18 at 20:30
  • That's not what they do. – Seamus Aug 15 '18 at 20:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .