The problem I'm currently facing is as follows. I have a set of words, and want to construct a grammatically correct phrase/sentence out of them, if at all possible. What I have tried so far is:
- From the reference text corpus calculate an average position of each word in a sentence;
- Using this, sort words in set, and separate with space.
The problem with this approach is that most of the time it produces bizarre phrases that make no sense. Is there any way to accomplish this, maybe using nlp techniques (assuming, I'm only working with English)?