Ryan Gosling actually wrote this when trying to understand his character, and used a technique called "dropping in" to analyze writing from Nabokov's Pale Fire. He approached Villeneuve about it and he added it to the film…
Dropping-in is a technique Tina [Packer] and Kristin Linklater developed together in the early 1970s to create a spontaneous, emotional connection to words for Shakespearean actors. In fact, “dropping in” is integral to actor training at Shakespeare & Co. (the company the Linklater’s founded) a way to start living the word and using it to create the experience of the thing the word represents.
https://cohost.org/mcc/post/178201-the-baseline-scene
https://iheartingrid.wordpress.com/2018/12/29/dropping-in-an-actors-truth-as-poetry/