Commit 4b0fa95
xxwhirlpool
·
2026-05-14 10:18:05 -0400 EDT
parent 809dfef
proofreading scripts
4 files changed,
+86,
-0
+1,
-0
| ... | ... | @@ -0,0 +1 @@ | |
| 1 | + | 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
| ... | ... | @@ -0,0 +1 @@ | |
| 1 | + | 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
| ... | ... | @@ -0,0 +1,42 @@ | |
| 1 | + | #!/usr/bin/env bash | |
| 2 | + | # | |
| 3 | + | # script to detect passive voice in a file | |
| 4 | + | # | |
| 5 | + | # inspired by the below blog post: | |
| 6 | + | # https://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/ | |
| 7 | + | ||
| 8 | + | # vars | |
| 9 | + | passive_word_dir="$HOME/.config/wordfiles" | |
| 10 | + | passive_word_file="$passive_word_dir/passive" | |
| 11 | + | ||
| 12 | + | # basic functions | |
| 13 | + | usage_help() { | |
| 14 | + | echo "Usage: passive [FILE]" | |
| 15 | + | exit 1 | |
| 16 | + | } | |
| 17 | + | ||
| 18 | + | gum_echo() { | |
| 19 | + | gum style --foreground "#f4b8e4" "$@" | |
| 20 | + | } | |
| 21 | + | ||
| 22 | + | die() { | |
| 23 | + | printf "%s\n" "$1" | |
| 24 | + | exit 1 | |
| 25 | + | } | |
| 26 | + | ||
| 27 | + | # check if word file exists | |
| 28 | + | wordfile_check() { | |
| 29 | + | [[ -f "$passive_word_file" ]] || die "passive word file does not exist" | |
| 30 | + | } | |
| 31 | + | ||
| 32 | + | # cat the word file into a var | |
| 33 | + | words=$(wordfile_check && cat "$passive_word_file") | |
| 34 | + | ||
| 35 | + | # print help if no args | |
| 36 | + | if [[ "$#" -eq 0 ]]; then | |
| 37 | + | usage_help | |
| 38 | + | fi | |
| 39 | + | ||
| 40 | + | # do the thing | |
| 41 | + | gum_echo "weasel words found:" | |
| 42 | + | grep -E -n -i --color "\\b(am|are|were|being|is|been|was|be)\ \\b[ ]*(\w+ed|($words))\\b" "$*" |
+42,
-0
| ... | ... | @@ -0,0 +1,42 @@ | |
| 1 | + | #!/usr/bin/env bash | |
| 2 | + | # | |
| 3 | + | # script to detect weasel words in a file | |
| 4 | + | # | |
| 5 | + | # inspired by the below blog post: | |
| 6 | + | # https://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/ | |
| 7 | + | ||
| 8 | + | # vars | |
| 9 | + | weasel_word_dir="$HOME/.config/wordfiles" | |
| 10 | + | weasel_word_file="$weasel_word_dir/weasel" | |
| 11 | + | ||
| 12 | + | # basic functions | |
| 13 | + | usage_help() { | |
| 14 | + | echo "Usage: weasel [FILE]" | |
| 15 | + | exit 1 | |
| 16 | + | } | |
| 17 | + | ||
| 18 | + | gum_echo() { | |
| 19 | + | gum style --foreground "#f4b8e4" "$@" | |
| 20 | + | } | |
| 21 | + | ||
| 22 | + | die() { | |
| 23 | + | printf "%s\n" "$1" | |
| 24 | + | exit 1 | |
| 25 | + | } | |
| 26 | + | ||
| 27 | + | # check if word file exists | |
| 28 | + | wordfile_check() { | |
| 29 | + | [[ -f "$weasel_word_file" ]] || die "weasel word file does not exist" | |
| 30 | + | } | |
| 31 | + | ||
| 32 | + | # cat the word file into a var | |
| 33 | + | words=$(wordfile_check && cat "$weasel_word_file") | |
| 34 | + | ||
| 35 | + | # print help if no args | |
| 36 | + | if [[ "$#" -eq 0 ]]; then | |
| 37 | + | usage_help | |
| 38 | + | fi | |
| 39 | + | ||
| 40 | + | # do the thing | |
| 41 | + | gum_echo "weasel words found:" | |
| 42 | + | grep -E -i -n --color "\\b($words)\\b" "$*" |