melancholy vs unhappiness

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. 

unhappiness

noun
  • The feeling of not being happy 

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