How do you know when to shut the f**k up

Teaching people to filter their words is very difficult if they don’t understand the concept. I am a very forward person but when the situation grants for silence, I know when to shut up. Some people have no filter, at all and it is sad to say that it would only make sense to know…