“I have always wondered how much he was involved in writing his lines for the movie. “
IIRC, he and the Director or someone, set up a tape recorder and he went off on a DI rant. It was transcribed and writing into the film.
writing = written