On an iPhone or iPad, open "Settings". Go to "General". Tap on "Text Replacement". Now, if you're a naughty person and you're on somebody else's device you could tap the '+' sign and set the device to auto-correct a word like "yes" to something like, "I have a big butt."

Not that I would ever do such a thing.