If the baby said a swearing word, and then, when you accidentally heard, try not to focus on this and do not get angry. Just pretend that you have not heard anything. If you scold the child for this, then he will probably remember him and will repeat from time to time, thereby checking his parents for strength.