I found a fun site which analyses your writing style, based on a sample of your work. It doesn’t have to be a story, it can be any type of writing you enjoy.
I tried two samples from my Princelings of the East saga, both of which suggested I write like J K Rowling. What a compliment!
Then I tried a sample from the prequel I’ve drafted, which is Hugo’s story, written it what I call a film noir style – in the first person and with an American accent – and it turned out to be like Stephenie Meyer (the Twilight Saga).
Excellent! Especially as theirs are the sort of readers I have in mind.
The sequel in progress, Victor’s story, which is again told in the first person, came out as written like Annie Rice (Interview with a Vampire, etc). I haven’t read any of these, because I don’t read horror, which is what these are classed as. But Victor does have a style all of his own. I’d prefer comparison with a crime writer for this, though.
I have to add a word of caution, though. I put in five sections of another blog I have, and they came out as four different writers, James Joyce (twice), Margaret Atwood, JRR Tolkein and Mario Puso. These were pieces on birdwatching, gardening and cooking, so I don’t know whether it really means anything at all. And this post came out like H P Lovecraft!