Composing phrases into a grammatically correct sentence?
There are few modules implemented using TensorFlow which intended to do the same.
Example:
https://github.com/atpaino/deep-text-corrector

This deep-learning models trained to check spellings and correct small grammatical errors.

Thanks!