insanity vs lunacy

insanity

noun
  • The state of being insane; madness. 

lunacy

noun
  • insanity implying legal irresponsibility. 

  • a cyclical mental disease, apparently linked to the lunar phases 

  • Something deeply misguided. 

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