rehabilitate vs upgrade

rehabilitate

verb
  • To restore or repair (a vehicle, building); to make habitable or usable again. 

  • To restore (someone) to their former state, reputation, possessions, status etc. 

  • To return (something) to its original condition. 

  • To vindicate; to restore the reputation or image of (a person, concept etc.). 

  • To restore to (a criminal etc.) the necessary training and education to allow for a successful reintegration into society; to retrain. 

  • To return (someone) to good health after illness, addiction, etc. 

  • To go through such a process; to recover. 

upgrade

verb
  • To improve, usually applied to technology, generally by complete replacement of one or more components 

  • To replace with something better. 

  • To improve the equipment or furnishings of or services rendered to 

  • To replace a program with a later version of itself, a version having a higher version number or marketed under a more recent product name. 

  • To improve in condition or status. 

noun
  • An upward grade or slope. 

  • An improvement 

  • An improved component or replacement item, usually applied to technology 

adv
  • Up a slope or grade. 

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