aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2021-12-09 20:22:09 -0500
committertdro <tdro@users.noreply.github.com>2021-12-10 00:02:37 -0500
commit8ea84da5b2ade1043d05c30289ef97835c4b1499 (patch)
treead6760ff8c2fcd0614dfa98ea863e3403e3b3828 /.local
parent4befedf2daab4c8acc8c8e2d26313b806cd19bba (diff)
downloaddotfiles-8ea84da5b2ade1043d05c30289ef97835c4b1499.tar.gz
dotfiles-8ea84da5b2ade1043d05c30289ef97835c4b1499.tar.bz2
dotfiles-8ea84da5b2ade1043d05c30289ef97835c4b1499.zip
.local/bin/portmanteau: Add maybe TODO
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/portmanteau8
1 files changed, 6 insertions, 2 deletions
diff --git a/.local/bin/portmanteau b/.local/bin/portmanteau
index 4b77d63..a3788c8 100755
--- a/.local/bin/portmanteau
+++ b/.local/bin/portmanteau
@@ -1,6 +1,10 @@
#!/bin/sh -eu
-word=$(diceware --num 2 --delimiter " ")
+word=$(diceware --no-caps --num 2 --delimiter " ")
first=${word%??? *}
second=${word#* ???}
-printf '%s\n%s%s\n' "$word" "$first" "$second" | tr '[:upper:]' '[:lower:]'
+# TODO: Maybe manipulate adjacent consonants and vowels at the word merge boundary.
+# barric[ade] [hea]dlock
+# barri[cd]lock -> barrilock
+
+printf '%s\n%s%s\n' "$word" "$first" "$second"