replace vs ruin

replace

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

  • To place again. 

  • To put in a new or different place. 

  • 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 

ruin

verb
  • To destroy or make something no longer usable. 

  • To seduce or debauch, and thus harm the social standing of. 

  • To make something less enjoyable or likeable. 

  • To upset or overturn the plans or progress of, or to have a disastrous effect on something. 

  • To cause the fiscal ruin of; to bankrupt or drive out of business. 

  • To reveal the ending of (a story); to spoil. 

noun
  • The state of being a ruin, destroyed or decayed. 

  • A change that destroys or defeats something; destruction; overthrow. 

  • The remains of a destroyed or dilapidated construction, such as a house or castle. 

  • The act of ruining something. 

  • Complete financial loss; bankruptcy. 

  • Something that leads to serious trouble or destruction. 

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