replace vs retrofit

replace

verb
  • To put in a new or different place. 

  • To place again. 

  • To take over the position or role from. 

  • To take the place of; to be used instead of 

  • To restore to a former place, position, condition, etc.; to put back 

  • To refund; to repay; to pay back 

  • To supply or substitute an equivalent for 

  • To demolish (a building) and build an updated form of that building in its place. 

retrofit

verb
  • To give new characteristics or make alterations (to someone or something) to suit them to changed circumstances. 

  • To supply (a device, structure, etc.) with new components or parts that were not previously available or installed; to modernize. 

  • Synonym of backport (“to retroactively supply a fix or feature to a previous version of a software product at the same time or after supplying it to the current version.”) 

  • To supply a device, structure, etc., with new components or parts that were not previously available or installed. 

  • To add or substitute (new components or parts) that were not previously available for or installed in a device, structure, etc. 

noun
  • An act of supplying a device, structure, etc., with new components or parts that were not previously available or installed; a retrofitting. 

  • A change made to a device, structure, etc., by introducing components or parts that were not previously available or installed. 

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