encourage vs undermine

encourage

verb
  • To mentally support; to motivate, give courage, hope or spirit. 

  • To spur on, strongly recommend. 

  • To foster, give help or patronage 

undermine

verb
  • To weaken or work against; to hinder, sabotage. 

  • To erode the base or foundation of something, e.g. by the action of water. 

  • To dig underneath (something), to make a passage for destructive or military purposes; to sap. 

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