The libjni_latinimegoogle.so is a tiny proprietary bit for the AOSP keyboard, which provides the swipe feature. You can extract and install it and it just works, but it would be better to have it available directly. (Also in LineageOS for microG.)
For that maybe consider to reimplement (or reverse-engineering) it too. I don't know why Google thought such a thing must be kept secret…
https://esc.fnwi.uva.nl/thesis/centraal/files/f2109327052.pdf
A research paper about recognizing input for swipe
based keyboards
And a very sophisticated approach https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43461.pdf
My 2c: http://nbviewer.jupyter.org/url/norvig.com/ipython/Gesture%20Typing.ipynb
How to implement in python.
I also miss that badly … any chance? The work-around described by @rugk at Android.SE unfortunately didn't work for me (LOS 14.1 / Android 7.1.2 on gohan, ie. BQ Aquaris X5 Plus). Magisk seems to be the culprit here: the file didn't stick after copy and reboot (edit: managed while booted into TWRP, using Aroma file manager to copy the file).
Are there any news?
Most helpful comment
FYA: https://github.com/AnySoftKeyboard/AnySoftKeyboard/issues/264