Conceptually, I understand the parts, but I'm having trouble translating that to working code. I've been doing some research and came across Jedi (https://github.com/davidhalter/jedi), which is an autocomplete library for Python.
Is there some guide somewhere that walks through the process of building something like Jedi for some other language (even an imaginary one)?
While it's tangential to this particular discussion, my goal (eventually) is to learn what I need to know to be able to build something like Jedi for PHP. There's only a handful of options for PHP code completion, and none of them provide the level of intelligence of a proprietary IDE like PhpStorm. That needs to change, IMO.
The next step up is to improve on that function. F.e. if the string is "disc" a good candidate probably is "discussion" but not "discus" unless that word previously occurs in the document.
Then continue from there. Coding is learnt by doing not by reading guides.