detonator vs petard

detonator

noun
  • A device used to detonate an explosive device etc. 

  • a small explosive device attached to the railhead to provide an audible warning when a train passes over it. 

petard

noun
  • A small, hat-shaped explosive device, used to breach a door or wall. 

  • Anything potentially explosive, in a non-literal sense. 

  • A loud firecracker. 

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