~kris/dots

srice

srice/.local/bin/weasel -rw-r--r-- 486 bytes
e98f3b03 — Kris Yotam chore: sync local state after restore (push updates, no pull) a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
# weasel -- find weasel words in prose
weasels="many|various|very|fairly|several|extremely|\
exceedingly|quite|remarkably|few|surprisingly|\
mostly|largely|huge|tiny|excellent|interestingly|\
significantly|substantially|clearly|vast|relatively|\
completely|literally|not unlike|outside the scope|\
arguably|to some extent|in some sense"

if [ "$1" = "" ]; then
    echo "Usage: $(basename "$0") <file> ..."
    exit 1
fi

egrep -i -n --color "\\b($weasels)\\b" "$@"