diff options
author | tdro <tdro@users.noreply.github.com> | 2021-12-09 20:22:09 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2021-12-10 00:02:37 -0500 |
commit | 8ea84da5b2ade1043d05c30289ef97835c4b1499 (patch) | |
tree | ad6760ff8c2fcd0614dfa98ea863e3403e3b3828 /.local | |
parent | 4befedf2daab4c8acc8c8e2d26313b806cd19bba (diff) | |
download | dotfiles-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/portmanteau | 8 |
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" |