erode vs impair

erode

verb
  • To destroy gradually by an ongoing process. 

  • To wear away by abrasion, corrosion or chemical reaction. 

impair

verb
  • To weaken; to affect negatively; to have a diminishing effect on. 

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