Skip to content

Instantly share code, notes, and snippets.

@mattmc3
Last active July 1, 2022 19:19
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 mattmc3/203fac6e21acc8d525b2f3f19a94fdcb to your computer and use it in GitHub Desktop.
Save mattmc3/203fac6e21acc8d525b2f3f19a94fdcb to your computer and use it in GitHub Desktop.
Colemak bigram assessment
function freq {
for c in $@; do
for c2 in $@; do
grep "$c$c2" /usr/share/dict/words | wc -l | tr -d '\n' && echo " $c$c2"
done
done
}
# least frequent home row bigrams
freq a r s t d h n e i o | sort -d | uniq | head -n 10
# most frequent home row bigrams
freq a r s t d h n e i o | sort -dr | uniq | head -n 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment