Skip to content

Instantly share code, notes, and snippets.

@wonglkd
Last active February 7, 2018 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wonglkd/6542088dbdbfedbe52cab5838eaf75f0 to your computer and use it in GitHub Desktop.
Save wonglkd/6542088dbdbfedbe52cab5838eaf75f0 to your computer and use it in GitHub Desktop.
spell_check.sh
#!/bin/bash
# usage: bash ../utils/spell-check.sh
# setup:
# brew install hunspell
# wget https://raw.githubusercontent.com/wooorm/dictionaries/master/dictionaries/en-US/index.dic -O ~/Library/Spelling/en_US.dic
# wget https://raw.githubusercontent.com/wooorm/dictionaries/master/dictionaries/en-US/index.aff -O ~/Library/Spelling/en_US.aff
#
hunspell -l -t *.tex | sort | uniq > ../utils/misspelled.tmp
sort ../utils/dictionary -o ../utils/dictionary
comm -23 ../utils/misspelled.tmp ../utils/dictionary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment