Generative artificial intelligence as author or inventor?