Courts have ruled that nonhumans like AIs and animals can't own IPs, and also, if you didn't create the work yourself, you wouldn't have rights to it. If ChatGPT writes a book in your style, it will probably be public domain aut