Determine if two pieces of text are by the same writer

Has anyone created a prompt that compares two pieces of writing to get an opinion on whether they were both written by the same author

They may be different niches or topics, but a prompt to look at sentence structure, word selection etc is what I am trying to find or create