In Canada, the explanatory comments embedded within software source code are fully protected as “literary works” under the Copyright Act. Because these comments require a programmer’s original thought, skill, and judgment, they are legally protected intellectual property, whether registered independently or alongside the code at CIPO.
When developers write software, they frequently embed text notes, known as comments, directly into the source code. 📝 These comments are ignored by the computer’s compiler but are vital for human programmers to understand the logic, intent, and architecture of the program. Many Canadian tech companies heavily guard their source code but overlook the fact that the comments themselves hold immense legal and intellectual value.
Under Canadian intellectual property law, code comments are treated as an original expression of thought. Just like a manual, a novel, or a technical guide, these text blocks qualify as a “literary work.” If a competitor manages to acquire your code and strips out the executable commands but uses your detailed comments to reverse-engineer their own software, they are committing copyright infringement. Understanding how to secure these assets with the Canadian Intellectual Property Office (CIPO) is essential for any software firm.
Step-by-Step Process for Protecting Code Comments
Protecting code comments follows the same foundational principles as protecting the software itself, but it requires a strategic approach to ensure both the functional code and the human-readable text are legally shielded. 💻 Here is how a Canadian business should proceed.
Step 1: Write Substantive Documentation
For comments to be copyrightable, they must surpass mere triviality. A comment that simply says // ends loop lacks the “skill and judgment” required by the Canadian Copyright Act. However, a detailed paragraph explaining why a specific cryptographic algorithm was chosen over another is highly original and easily protectable as a literary work.
Step 2: Confirm Authorship and Employment Status
You must establish clear ownership of the text. 👤 In Canada, if a full-time software engineer writes the code and comments during their normal “course of employment,” the tech company automatically owns the copyright. Conversely, if you hire an independent contractor, you must ensure their contract contains a specific clause assigning all intellectual property rights-including documentation and comments-to your business.
Step 3: Keep Source Code Confidential
Because code comments often reveal the “secret sauce” of how your software operates, keeping them confidential is your first line of defence. Implement strict access controls within your development environment. Before sharing your codebase with external auditors, investors, or partners in Canada, ensure a robust Non-Disclosure Agreement (NDA) is signed.
Step 4: Register as a Literary Work with CIPO
To gain a legal presumption of ownership, you should register the software via the CIPO online portal. 📄 You do not need to register the code and the comments separately. By registering the entire software package as a single “literary work,” the protection automatically extends to all original text within that work, including the embedded explanatory comments.
Step 5: Enforce Your Copyright if Breached
If you discover that a former employee or a competitor has copied your code comments to build a competing product, you have the right to enforce your copyright. A Canadian IP lawyer can use your CIPO registration to issue a formal demand letter, seek an injunction in federal court to halt the competitor’s project, or pursue financial damages for the infringement.
How Much Does it Cost in Canada?
Registering your software and its embedded comments is a highly cost-effective way to secure your intellectual property. 💲 As of May 2026, tech companies can expect the following typical costs in Canadian dollars (CAD):
| Legal Protection Step | Estimated Cost (CAD) |
|---|---|
| CIPO Copyright Registration Fee | $63 CAD (Online submission) |
| Drafting IP Assignment Agreements | $800 to $1,500 CAD |
| Drafting Non-Disclosure Agreements (NDA) | $500 to $1,000 CAD |
| IP Lawyer Consultation for Infringement | $300 to $600 CAD per hour |
How Long Does the Process Take?
Filing a copyright registration through CIPO is a rapid process, typically taking only 1 to 2 weeks to receive your electronic certificate. ␐ The protection itself is long-lasting. In Canada, the copyright on a literary work (including code and comments) lasts for the lifespan of the author (the programmer) plus an additional 70 years following the end of the calendar year of their death.
Frequently Asked Questions (FAQ)
Are automated AI code comments copyrighted?
Generally, no. Canadian copyright law currently requires a human author to exercise skill and judgment. If an AI tool (like Copilot) automatically generates standard comments for your code without human creative input, those specific AI-generated comments are likely not protected by copyright.
Do I need to send my source code comments to CIPO?
No. CIPO does not require you to deposit a copy of your work. You simply fill out the online application stating the title, author, and nature of the literary work. This ensures your proprietary comments and trade secrets remain completely private.
Can a competitor copy my code if they delete the comments?
No. Both the functional source code and the comments are protected as literary works under the Canadian Copyright Act. Deleting the comments and stealing the core logic or commands is still a severe copyright infringement.
Does “moral rights” apply to code comments?
Yes. Under Canadian law, authors have “moral rights” to be associated with their work and to prevent it from being modified in a way that harms their reputation. If an employee writes comments, they hold the moral rights unless they explicitly waive them in their employment contract.
Leave a Reply