Question: are cops allowed to swear at you?
Answer: There is no specific offence of swearing at a police officer, and in fact it is not a specific crime of swearing in public, only of causing "harassment alarm or distress" under the Act mentioned above. This requires some evidence of an individual being, or being likely to be, offended by the language used.