coprolalia

noun
  1. Involuntary utterance of obscene or offensive words, often associated with Tourette syndrome or other neurological conditions.
  2. Usage: medical/psychological term; from Greek copro- (feces) + lalia (speech)

Examples