LLMs, like ChatGPT, have been found to memorize and emit their training data, so there is a chance that the produced text is an almost verbatim copy of someone's work, checking for this is not trivial.