melancholy vs nightmare

melancholy

noun
  • Great sadness or depression, especially of a thoughtful or introspective nature. 

  • Black bile, formerly thought to be one of the four "cardinal humours" of animal bodies. 

adj
  • Affected with great sadness or depression. 

nightmare

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

  • A very bad or frightening dream. 

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

verb
  • To have a nightmare. 

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