What is one who business it is so detect criminals or discover matters of secrecy called?

detective — One who business it is so detect criminals or discover matters of secrecy. (Webster's 1913.)

Sources