This is not an argument against coding in a different language, though. It would be like having it restate Harry Potter in a different language with different main character names, and reshuffled plot points.
If you find a single paragraph that is a direct translation with different names that’s definitely enough for copyright infringement.
Reshuffling plot points is doing a lot of lifting here. Just looking at a specific chapter near the end of the book, if you change the the order of the trials, change the names, and translate it into a different language, you’re still going to have a very hard time arguing that what you’ve produced isn’t a derivative work.
Reshuffling plot points is doing a lot of lifting here. Just looking at a specific chapter near the end of the book, if you change the the order of the trials, change the names, and translate it into a different language, you’re still going to have a very hard time arguing that what you’ve produced isn’t a derivative work.