by surprise vs inadvertently

by surprise

inadvertently

adv
  • Unintentionally; because of an oversight. 

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