Okay. I found it.
Settings... Language and input... Samsung Keyboard... Predictive text and/or Auto check spelling.
Previously I had tried going through "Default keyboard" but I couldn't get there by that route. You have to go through "Samsung Keyboard".
Thanks.