https://medium.com/@ben_fry/tracing-the-origin-65011dc20877
Could be interesting to apply this sort of process to a variety of texts over time. A draft of Mary Shelley's Frankenstein comes to mind.
How to view this through the lens of Thomas Kuhn's The Structure of Scientific Revolutions? particularly as this was the evolution of an idea by the same author over time...