~kris/dots

srice

ref: 178c9a25a484ead715392d50e21d03df486b8b41 srice/.local/bin/weasel -rwxr-xr-x 486 bytes
178c9a25 — Kris Yotam conky: sync proper config from moirai (was the greenred variant) 2 months 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" "$@"