unintentionally vs with a view to

unintentionally

adv
  • In an unintentional manner; not intentionally. 

with a view to

prep
  • With the intention or goal of (followed by a noun or the infinitive). 

How often have the words unintentionally and with a view to occurred in a corpus of books? (source: Google Ngram Viewer )