plugins for wvkbd using swipeGuess
predictor: experimental compound word completion
Zach DeCook 2022-05-16
parent 5999a27 · commit 42e62ec
-rwxr-xr-xpredictor.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/predictor.sh b/predictor.sh
index f2ad3bb..931ce88 100755
--- a/predictor.sh
+++ b/predictor.sh
@@ -11,6 +11,9 @@ saveWord(){
while read -r word; do
printf "$word" > "$lw"
echo "$word"
+ end="$(printf "$word."|wc -c)"
+ rm -f "$complete"
+ grep -m 5 "^$word." "$words" | cut -b$end-99 |tr '\n' '\t' |sed 's/\t$/\n/g' > "$sock"
done
}
typeSomehow(){