Last active
July 1, 2022 19:19
-
-
Save mattmc3/203fac6e21acc8d525b2f3f19a94fdcb to your computer and use it in GitHub Desktop.
Colemak bigram assessment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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