Sentence:  By upholding his own personal <WSD>code</WSD> of behavior , the private detective has placed himself in opposition to a society whose fabric is permeated with crime and corruption . 
Meaning of the word marked with <WSD> tags:  a set of conventional principles and expectations that are considered binding on any person who is a member of a particular group