Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
using spelling as a proxy for ocr quality. `brew install aspell` to get that part of the equation running.
for f in *.txt; do
totalbadwords="$(cat "$f" | aspell list -d en_CA --encoding utf-8 | wc -w)"
totalwords="$(wc -w "$f")"
echo "$totalbadwords, $totalwords" >> "finalscore.csv"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment