Back when Starship Titanic came out, the website posted a copy of the associated novel, with the words in alphabetical order for convenience [1]. No copyright court would recognize this as a copy of the book, just as a dictionary is not a copy of any other work.
An observation about a work (how many words it has, which words, how frequently they’re associated with other words, who wrote them, when etc. ) is not the same thing as a copy of the work.
I get that there’s an ethical question here, but I really don’t agree that there’s a copyright question.