A prosecutor is a lawyer who represents the government in court and tries to prove that a person accused of a crime is guilty.
From *prosecute* + *-or*, meaning 'one who prosecutes'. It grew out of the idea of someone who actively pursues legal action.
Try Another Word