Maybe add a comment here explaining why you call 'predict' with `wordBeforeCursor()` -- I assume to directly show the suggestions for the last typed word in the newly changed keyboard language.