Now I'm thinking of some text adventure game I played as a teenager and as with all such I tried seeing what would happen if you typed in dirty words. In this one it would at first just not respond to "piss" and "shit" at all, not even the usual "invalid command" type of response so I knew something was up. I found if you persistently typed them enough times the game would start saying "I don't need to, thank you." If you still kept persisting you would eventually get "You wet your pants, fool!" / "You have shit in your pants, fool!" (unless you removed the pants first, in which case it would just give something like "Ahhh, that felt good!")
No idea what the title was, I think you were like, stranded on an alien planet and trying to escape and there was a lake you could swim in and maybe a hostile robot. Mostly I just remember the swear responses though.
My recollection is that most other games I tried this in either just didn't have swears in their dictionary or generically told you off if you used them. Conrad Button's games would kill you / force quit the game if you swore though, as I recall.
(Also cue AVGN "don't know how to FUCK something")