How Auto-correct works