csinva / imodels

Interpretable ML package 🔍 for concise, transparent, and accurate predictive modeling (sklearn-compatible).
https://csinva.io/imodels
MIT License
1.35k stars 120 forks source link

Spelling Corrections #155

Closed mepland closed 1 year ago

mepland commented 1 year ago

@csinva I did my spelling checks. The likihood -> likelihood correction required some files and functions to be renamed, but it looks like all of the tests passed. Also, I did not update any of the doc files, so you'll need to rebuild the documentation.

For my future reference, here are the relevant commands:

echo 'personal_ws-1.1 en 1' > dictionary.tmp | sed -e '/[^a-zA-Z]/d' ~/.vim/spell/en.utf-8.add >> dictionary.tmp | for f in $(find . -type f -not -path "*git*" -not -path "*/docs/*" -not -name '*.html' -not -name '*.png' -not -name '*.arff') ; do aspell --home-dir=. --personal=dictionary.tmp --mode=tex list < $f ; done | sed $'s/[^[:print:]\t]//g' | sed -r '/^.{,4}$/d' | sort | uniq > ../misspelled_words.txt && rm -rf dictionary.tmp

grep --exclude *.html -rIn oldword *
for f in $(find . -type f -not -path "*git*" -not -path "*/docs/*" -not -name '*.html' -not -name '*.png' -not -name '*.arff') ; do sed -i 's/oldword/newword/g' $f ; done
csinva commented 1 year ago

Thanks for the cleanup, everything passes for me as well - will recreate the docs now.