That's exactly the thing I would be looking for, too.
Especially since I'm working in proprietary niche language, it would be so great to have my own code to be the corpus of the model.
It could be so easy: stuff your codebase into a model generator and out comes some sensible autocomplete. Well, at least I hope we will see something like this soon.