detective vs state trooper

detective

noun
  • A police officer who looks for evidence as part of solving a crime; an investigator. 

  • A person employed to find information not otherwise available to the public. 

adj
  • Employed in detecting. 

state trooper

noun
  • An officer of the state police. 

How often have the words detective and state trooper occurred in a corpus of books? (source: Google Ngram Viewer )