Copyright & Disclosure
Generative AI raises legal and ethical questions that are still being worked out by courts and lawmakers around the world. This lesson is not legal advice — rules differ by country and change quickly — but it gives you the vocabulary and practical habits that responsible builders and users follow.
The open questions
| Question | Why it matters |
|---|---|
| Is training on copyrighted text and images allowed? | Models learn from huge collections of public content; rights holders, AI companies and courts disagree about when this is permitted. Outcomes vary by jurisdiction and are subject to ongoing lawsuits and new legislation. |
| Can a model reproduce protected work? | Models occasionally reproduce memorised passages, code or images closely — especially well-known, frequently repeated material. |
| Who owns AI-generated output? | In several jurisdictions, purely machine-generated works may not be protected by copyright, while works with significant human creative input can be. Provider terms of service also define rights to outputs. |
| What about licences? | Generated code can resemble open-source code under licences that require attribution or impose conditions. |
Checking for verbatim reproduction
A practical safeguard is to compare generated text with sources you must not copy and flag long shared word sequences (n-grams). Plagiarism checkers and some code assistants use the same idea at scale:
def ngrams(text, n):
words = text.lower().split()
return {" ".join(words[i:i + n]) for i in range(len(words) - n + 1)}
protected = ("The lighthouse keeper counted seven gulls before the fog rolled over the harbour "
"and swallowed the lamp whole")
outputs = {
"original": "Mist drifted in from the sea and soon the beacon on the rocks could no longer be seen",
"too close": "The lighthouse keeper counted seven gulls before the fog rolled over the harbour again",
}
N = 6
for name, text in outputs.items():
shared = ngrams(text, N) & ngrams(protected, N)
print(f"{name:<10} shared {N}-word sequences: {len(shared)}")original shared 6-word sequences: 0
too close shared 6-word sequences: 8
Long verbatim overlaps are a strong signal to rewrite or attribute. (The protected sentence here is invented for the demo.)
Respecting licences in data
If you build datasets for fine-tuning or RAG, track where each document came from and under which terms you may use it, and filter accordingly:
documents = [
{"id": 1, "source": "own-docs", "license": "proprietary-ours"},
{"id": 2, "source": "wiki-mirror", "license": "CC-BY-SA"},
{"id": 3, "source": "news-site", "license": "all-rights-reserved"},
{"id": 4, "source": "gov-open-data", "license": "public-domain"},
{"id": 5, "source": "forum-scrape", "license": "unknown"},
]
ALLOWED = {"proprietary-ours", "public-domain", "CC-BY-SA"}
NEEDS_ATTRIBUTION = {"CC-BY-SA"}
for doc in documents:
if doc["license"] in ALLOWED:
note = " (attribution + share-alike terms apply)" if doc["license"] in NEEDS_ATTRIBUTION else ""
print(f"use #{doc['id']} {doc['source']}{note}")
else:
print(f"skip #{doc['id']} {doc['source']} [{doc['license']}]")use #1 own-docs
use #2 wiki-mirror (attribution + share-alike terms apply)
skip #3 news-site [all-rights-reserved]
use #4 gov-open-data
skip #5 forum-scrape [unknown]
Which licences are acceptable depends on your use and jurisdiction — the point is to record provenance so the decision can be made and audited.
Disclosure and transparency
People increasingly expect — and in some places laws require — to know when they are dealing with AI. Good practice:
- Tell users when they are talking to an AI, not a person.
- Label AI-generated or AI-edited content where it could be mistaken for human-made or real (images of real people or events, news, reviews).
- Use provenance standards where available: some image generators embed metadata or invisible watermarks (for example via the C2PA content-credentials standard) that identify AI-generated media.
- Follow your context's rules: schools, journals, publishers and employers often have policies on AI use and how to disclose it.
- Never create deceptive content — fake reviews, impersonations, deepfakes of real people — regardless of whether a law in your country explicitly forbids it.
def with_disclosure(text, model_assisted=True, human_reviewed=False):
if not model_assisted:
return text
label = "Drafted with AI assistance" + ("; reviewed by our team." if human_reviewed else ".")
return f"{text}\n\n— {label}"
print(with_disclosure("Thanks for your message! Your replacement ships tomorrow.", human_reviewed=True))Thanks for your message! Your replacement ships tomorrow.
— Drafted with AI assistance; reviewed by our team.
Your own use of AI tools
- Read the provider's terms: what rights do you have to outputs, and is your input used for training?
- Don't paste confidential or third-party data into tools that aren't approved for it.
- Treat generated code like code from an unknown source: review it, test it, and check licence obligations if it closely matches existing code.
- You remain responsible for what you publish, whether a model drafted it or not.
Test yourself
What does an n-gram overlap check detect?
- Spelling mistakes
- Long word sequences copied verbatim from a source
- Whether text is AI-generated
- The text's sentiment
Why record the licence and source of every document in a training or RAG dataset?
- It improves embeddings
- So usage rights can be checked, filtered and audited
- It is needed for tokenization
- To make the dataset larger
Which is a good disclosure practice?
- Hide that a chatbot is an AI
- Tell users when they are interacting with AI and label realistic AI-generated media
- Remove watermarks from generated images
- Only disclose when asked three times