aboutsummaryrefslogtreecommitdiff
path: root/base/proofread
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2018-09-30 20:36:27 -0600
committerAdam Hovorka <[email protected]>2018-09-30 20:36:27 -0600
commit9c1224578330135406ddc9f461184ff1f6756c0c (patch)
tree0afbaceff14b98919c04048bdf5d11a5a850289c /base/proofread
parentfc7fc47c946f49040df60dc3e3c4499399975125 (diff)
Add some more random utilities/functions
Diffstat (limited to 'base/proofread')
-rwxr-xr-xbase/proofread27
1 files changed, 27 insertions, 0 deletions
diff --git a/base/proofread b/base/proofread
new file mode 100755
index 0000000..2db4382
--- /dev/null
+++ b/base/proofread
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+
+# http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/
+
+# Common stuff
+CYAN="$(tput setaf 6)"
+UNDERLINE="$(tput sgr 0 1)"
+NOCOLOR="$(tput sgr0)"
+function header() {
+ echo -e "$UNDERLINE$CYAN$1$NOCOLOR"
+}
+
+if [ "$1" = "" ]; then
+ echo "Usage: `basename $0` <file> ..."
+ exit
+fi
+
+header "Weasel words"
+pr-weasel $1
+echo
+
+header "Passive voice"
+pr-passive $1
+echo
+
+header "Duplicates"
+pr-dups $1