I know Apple and Google have predictive text, but I believe it is purely statistically generated, without analysis of a sentence's grammar. I know various computer parsing systems of human language exist (https://en.wikipedia.org/wiki/Parsing#Human_languages).
Is there any system which uses the actual grammar rules of a language (for example, the Cambridge Grammar of English) and the actual lexical information of the words (for example, "the" must take a noun as its complement), and a dictionary, to suggest, in an incomplete sentence, which words could come next which would be grammatically correct?