~kris/dots

srice

ref: 2582f0c4173a4ad6a31e0cb759473c893cdc4e93 srice/.local/bin/weasel -rwxr-xr-x 486 bytes
2582f0c4 — Kris Yotam sb-cpu: portable temp source (Intel Core 0, AMD Tdie/Tctl, Asahi NVMe Composite fallback) 3 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" "$@"