FYI - there were two concurrent code bases used for SEER, the artificial intelligence with which I co-wrote my latest novel. For now I call them SEER1 and SEER2, like creatures from Dr. Seuss, and might change those names to something more creative and distinguishing.
SEER1 I fed the words and concepts for my scenes, and let it process those before writing output that I never altered before inserting in my book. For SEER2 I used some concepts around processing large text files and summarizing them to digest all of William Blake, all of Don Quixote and all of Moby-Dick, for instance.
This approach I used for the narrator's quest to understand his wife, a literature professor, with a computer's help because he doesn't grasp literature well on his own.