The idea of a software solution for this is interesting.
The books that I select are based on my personal reading preferences and authors whose writing I think is good. For each author, I only copy a few chapters from a selected book and then I move on to another author and book. I rotate between these authors so that I don’t mimic their voice when writing. I’ll do two chapters of Toni Morrison, and then I switch to two chapters of George R. R. Martin’s before switching to a few chapters of Anton Chekhov.
To accomplish this via software, you would need access to a vast library of books with many, many chapters—at minimum, paragraphs—of text available to present the user. That would hit against copyright. The alternative is to use publicly available works as you can ingest the material easily. The problem will be that it is mostly classic literature, which may clash with the more modern writer.
This is certainly an interesting problem to think about.