erratically vs sometimes

erratically

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

sometimes

adv
  • On certain occasions, or in certain circumstances, but not always. 

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