erratically vs periodically

erratically

adv
  • In an erratic manner; unsteadily or randomly, unpredictably. 

periodically

adv
  • intermittently or recurrently 

  • In a manner that is regular or periodic. 

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