- commit
- 4b0fa95
- parent
- 809dfef
- author
- xxwhirlpool
- date
- 2026-05-14 10:18:05 -0400 EDT
proofreading scripts
4 files changed,
+86,
-0
+1,
-0
1@@ -0,0 +1 @@
2+awoken|been|born|beat|become|begun|bent|beset|bet|bid|bidden|bound|bitten|bled|blown|broken|bred|brought|broadcast|built|burnt|burst|bought|cast|caught|chosen|clung|come|cost|crept|cut|dealt|dug|dived|done|drawn|dreamt|driven|drunk|eaten|fallen|fed|felt|fought|found|fit|fled|flung|flown|forbidden|forgotten|foregone|forgiven|forsaken|frozen|gotten|given|gone|ground|grown|hung|heard|hidden|hit|held|hurt|kept|knelt|knit|known|laid|led|leapt|learnt|left|lent|let|lain|lighted|lost|made|meant|met|misspelt|mistaken|mown|overcome|overdone|overtaken|overthrown|paid|pled|proven|put|quit|read|rid|ridden|rung|risen|run|sawn|said|seen|sought|sold|sent|set|sewn|shaken|shaven|shorn|shed|shone|shod|shot|shown|shrunk|shut|sung|sunk|sat|slept|slain|slid|slung|slit|smitten|sown|spoken|sped|spent|spilt|spun|spit|split|spread|sprung|stood|stolen|stuck|stung|stunk|stridden|struck|strung|striven|sworn|swept|swollen|swum|swung|taken|taught|torn|told|thought|thrived|thrown|thrust|trodden|understood|upheld|upset|woken|worn|woven|wed|wept|wound|won|withheld|withstood|wrung|written
+1,
-0
1@@ -0,0 +1 @@
2+many|various|very|fairly|several|extremely|exceedingly|quite|remarkably|few|surprisingly|mostly|largely|huge|tiny|((are|is) a number)|excellent|interestingly|significantly|substantially|clearly|vast|relatively|completely
+42,
-0
1@@ -0,0 +1,42 @@
2+#!/usr/bin/env bash
3+#
4+# script to detect passive voice in a file
5+#
6+# inspired by the below blog post:
7+# https://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/
8+
9+# vars
10+passive_word_dir="$HOME/.config/wordfiles"
11+passive_word_file="$passive_word_dir/passive"
12+
13+# basic functions
14+usage_help() {
15+ echo "Usage: passive [FILE]"
16+ exit 1
17+}
18+
19+gum_echo() {
20+ gum style --foreground "#f4b8e4" "$@"
21+}
22+
23+die() {
24+ printf "%s\n" "$1"
25+ exit 1
26+}
27+
28+# check if word file exists
29+wordfile_check() {
30+ [[ -f "$passive_word_file" ]] || die "passive word file does not exist"
31+}
32+
33+# cat the word file into a var
34+words=$(wordfile_check && cat "$passive_word_file")
35+
36+# print help if no args
37+if [[ "$#" -eq 0 ]]; then
38+ usage_help
39+fi
40+
41+# do the thing
42+gum_echo "weasel words found:"
43+grep -E -n -i --color "\\b(am|are|were|being|is|been|was|be)\ \\b[ ]*(\w+ed|($words))\\b" "$*"
+42,
-0
1@@ -0,0 +1,42 @@
2+#!/usr/bin/env bash
3+#
4+# script to detect weasel words in a file
5+#
6+# inspired by the below blog post:
7+# https://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/
8+
9+# vars
10+weasel_word_dir="$HOME/.config/wordfiles"
11+weasel_word_file="$weasel_word_dir/weasel"
12+
13+# basic functions
14+usage_help() {
15+ echo "Usage: weasel [FILE]"
16+ exit 1
17+}
18+
19+gum_echo() {
20+ gum style --foreground "#f4b8e4" "$@"
21+}
22+
23+die() {
24+ printf "%s\n" "$1"
25+ exit 1
26+}
27+
28+# check if word file exists
29+wordfile_check() {
30+ [[ -f "$weasel_word_file" ]] || die "weasel word file does not exist"
31+}
32+
33+# cat the word file into a var
34+words=$(wordfile_check && cat "$weasel_word_file")
35+
36+# print help if no args
37+if [[ "$#" -eq 0 ]]; then
38+ usage_help
39+fi
40+
41+# do the thing
42+gum_echo "weasel words found:"
43+grep -E -i -n --color "\\b($words)\\b" "$*"