Twitter is belatedly implementing an idea that the xkcd comic suggested many years ago: Showing people when they are being jerks.
Twitter just rolled out a new feature that looks at a tweet before it is sent. If the software thinks the message is harmful or offensive, it offers the user a chance to reconsider. That’s a good use case for some machine learning, and they have now tweaked their algorithm to take your connection to the recipient into account.
But it shouldn’t really be necessary to have an AI to tell you to behave. How about you just train your brain to not be a jerk? Think before you post.