Summon armor stand with a tag that matches the title/name of a written book

I have a very specific issue, and I've been stuck on it for a while so I'll see if anybody here can think of a solution. 1.20.1 so no command macros unfortunately.
Continue to help post