Sub topic 2
Why human authorship matters
This chapter explains why copyright law ties protection to a human author, and what that means when an AI assistant helps write your code. It assumes you can use an AI coding assistant, work with Git and code review, and know roughly what an open-source license is. The previous chapter covered how copyright applies to software. The next one applies this chapter's rule to AI output in detail. Here the goal is to understand the rule and its reasons.
This is general education, not legal advice. The law differs by country and is still changing.
The rule in one sentence
Copyright protects original expression created by a human being. If no human made the creative choices in a piece of code, copyright may not protect that code.
Three terms in that sentence carry the weight:
- Original means the work came from the author and shows at least a minimal amount of creativity. In the US, the Supreme Court set this low bar in Feist v. Rural Telephone (1991).
- Expression means the specific form of a work, such as the exact text of a function. It does not mean the idea behind the work or the way it functions.
- Human means a natural person. A company can own a copyright, but only because a person created the work first, or because the law treats an employer as the author of work done by employees.
Where the requirement comes from
Most copyright statutes never say "a human must write this." The requirement comes from how the statutes use the word author, and from courts and registration offices reading it that way over many decades.
In the US, the Copyright Act protects "original works of authorship." The Supreme Court's Burrow-Giles v. Sarony (1884) described an author as the person to whom a work owes its origin, and it grounded that in the author's mental conception. Later decisions and the Copyright Office's own practice manual treat human creativity as a condition for registration.
Courts have applied this to non-human creators:
- In Naruto v. Slater (9th Cir. 2018), a monkey took a selfie with a photographer's camera. The court held the monkey could not sue for infringement under the Copyright Act.
- In Thaler v. Perlmutter, Stephen Thaler tried to register an image made by his AI system, listing the system as the sole author. The Copyright Office refused. The D.C. Circuit upheld the refusal in 2025 and held that the Copyright Act requires a human author.
Thaler is narrow. Thaler said no human contributed creatively and named the machine as the author. The court did not decide how much human involvement is enough when a person uses AI as a tool. That question sits in the gray area between the extremes.
Why the law works this way
Two common explanations:
- Incentive. Copyright exists to reward and encourage human creative work. A machine does not need an incentive.
- Attribution of choices. Copyright attaches to the choices a person made. If nobody made the expressive choices, there is no one to hold the rights, and no one who can transfer or license them.
Neither explanation is a law of nature. Some legal systems have different rules for works made by computers. The chapter on jurisdictions compares them.
What counts as human authorship
Courts and offices do not ask whether a human was nearby. They ask whether a human contributed original expression. In practice, the following contributions can count:
- Writing code yourself, line by line.
- Selecting and arranging material in an original way, such as choosing which generated pieces to keep and how to structure them into a module. Compilation authorship can protect the arrangement even when some parts are unprotected.
- Modifying generated material enough that your changes are themselves original.
- Directing a tool so closely that you control the resulting expression, which is rare with today's text prompts.
Contributions that usually do not count on their own:
- Having the idea ("a rate limiter with a token bucket").
- Writing a short prompt and accepting whatever the model returns.
- Running the tool and pressing "accept."
The US Copyright Office has said this publicly. Its March 2023 guidance on works containing AI-generated material says applicants must disclose AI-generated content that is more than minimal and explain the human author's contribution. Its January 2025 report on copyrightability concluded that prompts alone do not currently give enough control over the output to make the user the author, though human selection, arrangement, and modification can be protected. A 2023 registration decision on the comic Zarya of the Dawn shows the split. The human-written text and the arrangement of the pages were protected. The individual Midjourney images were not.
Ideas and function are never protected
Even for fully human code, copyright does not cover ideas, algorithms, methods of operation, or functionality. In the US this comes from 17 U.S.C. § 102(b). When there are only a few ways to express something, the expression may merge with the idea and receive little or no protection.
This matters for AI-assisted code. A generated function that implements a well-known algorithm in the only natural way may have little protectable expression whether or not a human was involved. The human-authorship question matters most for code with real design choices: structure, naming, organization, and non-obvious solutions.
A worked example
Suppose you ask an assistant for a function that limits a value to a range. It returns this:
def clamp(v, lo, hi):
if v < lo:
return lo
if v > hi:
return hi
return vYou then rewrite it, add input validation, and document the behavior:
def clamp(value: float, low: float, high: float) -> float:
"""Return value limited to the closed range [low, high]."""
if low > high:
raise ValueError("low must not exceed high")
return max(low, min(value, high))Your changes (the type hints, the validation rule, the docstring, the rewritten body) are expressive contributions from you. The original draft is a different matter. It is short, conventional, and driven by function, so it has little protectable expression whoever wrote it. This example is deliberately small. In a real project, the same analysis applies at scale: you ask which parts reflect your creative choices and which came straight from the tool.
Assistance versus generation
The spine of this tutorial separates two cases. The line between them is a spectrum, not a switch.
| Scenario | Who made the expressive choices | Likely status |
|---|---|---|
| You write the code, the tool completes a variable name | You | Human-authored |
| You write a detailed design, the tool drafts a function, you rewrite most of it | Mostly you | Human-authored where your changes are original |
| You prompt for a module, review it, and keep it nearly unchanged | The tool | Weak or no protection for the generated portion |
| An autonomous agent writes a whole feature and you merge it unread | The tool | Weak or no protection, plus review and license risk |
| You assemble many generated pieces into an original structure | You, for the arrangement | Arrangement may be protected, individual pieces may not |
The table is a heuristic. No court has drawn a precise line for code, and the answer can vary by country and by the facts. Treat the third and fourth rows as the ones to document carefully.
Why this matters in practice
If part of a codebase has no copyright protection, several things follow:
- Enforcement. You cannot easily stop others from copying that part. A competitor who copies an unprotected module may not infringe anything.
- Licensing. An open-source license is a grant of permission under copyright. If there is no copyright in a portion, the license terms may have nothing to attach to for that portion. You can still declare a license, but you may not be able to enforce it.
- Contracts and diligence. A buyer or client may ask you to warrant that you own the code. Unclear authorship makes that warranty harder to give.
- Registration. In the US, registering a work that includes more than minimal AI-generated material means disclosing it and excluding it from the claim.
Lack of copyright protection does not mean the code is free of risk. Generated code can still reproduce someone else's protected code, which is a separate problem covered in later chapters on training data and license contamination. Human authorship is about whether you hold rights. Contamination is about whether others hold rights in what you used.
Common mistakes
- Treating prompts as authorship. A detailed prompt can be creative, but current US guidance says it generally does not give the user control over the specific expression the model produces.
- Treating "I reviewed it" as authorship. Reviewing is not the same as making creative choices. Rewriting, restructuring, and selecting can be.
- Assuming the company owns it automatically. Employer ownership transfers rights that exist. It does not create rights that never arose. The employment chapter returns to this.
- Assuming one rule applies everywhere. The US requirement is strict. The UK has a specific provision for computer-generated works. The EU requires the author's own intellectual creation. The next chapters compare them.
Exercise
A developer asks an assistant for a complete caching module, skims it, and commits it unchanged. A colleague later rewrites the eviction policy and restructures the public API. Which parts of the module are most likely to have a human author, and why?
Show answer
The colleague's eviction policy rewrite and API restructuring are the strongest candidates, because they reflect original choices made by a person. The first developer's contribution is weak: an idea, a short prompt, and acceptance of the output are not creative expression. The untouched generated portions probably have doubtful protection, and any part that is purely functional or has only one natural expression has little protection regardless of who wrote it.
Exercise
Why does the Thaler v. Perlmutter decision not settle whether code written with heavy AI help can be copyrighted?
Show answer
Thaler named an AI system as the sole author and claimed no human creative contribution. The court only held that a human author is required. It did not decide how much human selection, arrangement, or modification of AI output is enough, which is the question that applies to most real AI-assisted code.