grandiloquence vs pedantry

grandiloquence

noun
  • Lofty, pompous or bombastic speech or writing. 

pedantry

noun
  • An excessive attention to detail or rules. 

  • An instance of such behaviour. 

  • An overly ambitious display of learning. 

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