Coprolalia

Coprolalia is a type of complex vocal tic involving the involuntary speaking of swears or socially taboo words or phrases, including racial slurs.

This does not show what the person is thinking and can occur without the person meaning what they say, for example a racial slur can come from a non-racist person.

Misconceptions
Coprolalia is the most misunderstood aspect of Tourette's syndrome, leading people to think that the condition involves anger management issues. The swearing is not due to anger (although feeling angry might increase tics and so bring forth coprolalia). Many people swear, but to be classed as coprolalia, the swearing must be inappropriate to the situation. For example:

''Person A is walking down the street, drops his mobile phone and swears. ''

''Person B is walking down the street, shouts out a swear word and feels embarassed. ''

In this example, whether it was seen as acceptable or not, Person A swore for a reason (the dropping of the mobile phone), whereas Person B merely swore. He was also embarassed by it, because he did not mean to swear.