Scientists found that it can be good to swear in painful situations because it produces a hypoalgesic effect and can therefore cause the pain to lessen. But it only works if you don't swear really often, because then it wears off and doesn't provide the effect.
Comments