There are, of course, exceptions to the ban on punishing speech. Examples are laws that prohibit speech that could incite violence. ButCops can't use such laws just to punish people who say them, even those who use profanity.