I have to implement auto-suggestion feature in my desktop based java application. The requirement is as follow:
A user will give a sentence as input and i have to return the next possible Part-Of-Speech as suggestion. 
Eg:
1. UserInput: Mike wants to  Suggestions: [read, play, have fun, study, code, .., etc] 
2. UserInput: Mike have  Suggestions: [to read, Naboo N-1 starfighter, horse, .., etc] 
It's a duplicate of this question, but this one is for Android. Can this be done by using some NLP libraries like Stanford-NLP or OpenNLP etc? Do let me know, if you require some more detail.
Thanks!