Generates completion candidates with the given context words and prefix.