detonator vs firework

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. 

firework

noun
  • A device using gunpowder and other chemicals which, when lit, emits a combination of coloured flames, sparks, whistles or bangs, and sometimes made to rocket high into the sky before exploding, used for entertainment or celebration. 

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