Use AHK to suggest and complete words from a trained dictionary as you type. Press CapsLock + Space as you type for enable the current writing word prediction!
This is a revisited version of the Uberi AHK script Uberi - Autocomplete
This script bases its operation on the python library autocomplete, by default it uses a simple pre-trained model for the English language. See its documentation if you are interested in training on your corpus.
-
Install the autocomplete & bottlepy python library
pip install autocomplete
pip install bottle
-
(optional) Train the autocomplete model with your documents to improve the accuracy and quality of predictions.
-
Run the autocomplete server
python run_server.py
-
You can now through a GET request ask for a prediction. The request format is
http://localhost:8080/<text>
-
Run the
AHKautocomplete.ahk
script and press CapsLock + Space as you type for enable the current writing word prediction.
- Use the
Up
andDown
arrow keys to select an entry if the currently selected one is not the desired word. - Press
Enter
orTab
to trigger the completion with the currently selected word. Alternatively, press one ofAlt + 1
,Alt + 2
, ...,Alt + 9
,Alt + 0
to trigger completion with the 1st, 2nd, ..., 9th, and 10th word, repectively.