With text prediction, the device suggests next words as you type a few letters. However, this feature can sometimes be a nuisance for users.
Here's how to disable text prediction on Sony Xperia M5 Single Sim.
Step 1. Go to Settings.
Step 2. Enter Language & Input.
Step 3. Select Xperia Keyboard.
Step 4. In this step, choose 'Word Suggestions,' then select 'I don't want any assistance while typing, even word suggestions.'