Profanity and dirty jokes are a crime, at least in the U.S. military. We’ve all heard the phrase “cuss like a sailor,” but that sailor can actually be busted for having a potty mouth. According to the manual, “‘Indecent’ language is that which is grossly offensive to modesty, decency, or propriety, or shocks the moral sense, because of its vulgar, filthy, or disgusting nature, or its tendency to incite lustful thought.”
This one probably isn’t enforced all that often, but it does carry some stiff punishments when it is.
Maximum punishment: Communicated to any child under the age of 16 years. Dishonorable discharge, forfeiture of all pay and allowances, and confinement for 2 years. Other cases. Bad-conduct discharge; forfeiture of all pay and allowances, and confinement for 6 months.