Spell check for macOS Terminal app?
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.