stand in vs substitute

stand in

noun
  • A substitute; a replacement. 

verb
  • To substitute for; to replace; (theater) to serve as an understudy. 

  • To make one of a party in a bet or other speculation. 

  • To take a side in a dispute. 

substitute

noun
  • A replacement or stand-in for something that achieves a similar result or purpose. 

  • A player who is available to replace another if the need arises, and who may or may not actually do so. 

  • One who enlists for military service in the place of a conscript. 

verb
  • To remove (a player) from the field of play and bring on another in his place. 

  • To serve as a replacement (for someone or something). 

  • To use in place of something else, with the same function. 

  • To use X in place of Y. 

  • To use Y in place of X; to replace X with Y. 

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