I disagree.
The context of the character reflects the way they speak. So for example, if the character you are writing about is a violent criminal, it would be more effective to have their dialogue consist of a fair bit of cussing. In fact, you'd expect that from a person with a violent...