nightmare vs specter

nightmare

noun
  • A very bad or frightening dream. 

  • Any bad, miserable, difficult or terrifying situation or experience that arouses anxiety, terror, agony or great displeasure. 

  • A feeling of extreme anxiety or suffocation experienced during sleep; Sleep paralysis. 

verb
  • To have a nightmare. 

specter

noun
  • A threatening mental image. 

  • Any of certain species of dragonfly of the genus Boyeria, family Aeshnidae. 

  • A ghostly apparition, a phantom. 

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