For names, it is used to ensure the privacy of the person. Using the dash, we can only see the first letter of his name.
For profanities, it is used to make the text less rude, while still making sure the reader knows what was meant.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence