Is it considered Nivul Peh if one writes an inappropriate phrase? (For example, if one is writing a book with fictional dialogue, or a dictionary of slang terms.)
When it comes to relationships the Sefarim do not call the body parts by their name. It is called אותו מקום. This would indicate to me that it is inappropriate to write Nivul Pe. I would say that it can cause one to read it out loud and say it.