I just found a nice tool called Perspective, which shows if what you are writing, will be perceived as rude or offensive. From their product description:
Perspective is an API that makes it easier to host better conversations. The API uses machine learning models to score the perceived impact a comment might have on a conversation. Developers and publishers can use this score to give realtime feedback to commenters or help moderators do their job, or allow readers to more easily find relevant information, as illustrated in two experiments below. We’ll be releasing more machine learning models later in the year, but our first model identifies whether a comment could be perceived as “toxic" to a discussion.
Maybe it could improve the quality of questions, answers and comments if something like that would be shown to the user.
but rather to let the user that is writing the comment rethink if what he is writing could be missunderstood
I'd be very surprised if the API could predict that with meaningfully good success - but you never know I guess.