Text and data mining exception (TDM)
A text and data mining exception is a rule in copyright law that lets people copy works for automated analysis without asking the rights holder, and it is central to legal arguments over training AI on copyrighted material.
Text and data mining (TDM) means using automated techniques to analyse text and data in digital form to generate information such as patterns, trends and correlations. EU law defines it in those terms. Doing it usually means copying works, and copying is something copyright normally reserves to the rights holder. A TDM exception carves out that copying. Because training an AI model starts with copying huge numbers of works into a dataset, whether an exception applies is one of the key questions in AI copyright disputes.
The European Union has two. The Copyright in the Digital Single Market Directive (EU) 2019/790, dated April 17, 2019, which member states had to adopt by June 7, 2021, contains them. Article 3 lets research organisations and cultural heritage institutions mine works they have lawful access to for scientific research. Article 4 is broader: anyone may copy lawfully accessible works for text and data mining and keep the copies as long as needed for that purpose, unless the rights holder has reserved their rights in an appropriate manner, such as by machine-readable means for content published online. That reservation is commonly called the TDM opt-out.
The EU AI Act ties into this. Article 53 requires providers of general-purpose AI models to have a policy for complying with EU copyright law, including identifying and respecting Article 4 opt-outs, and to publish a sufficiently detailed summary of the content used for training. Courts are now applying the exceptions to AI datasets. The photographer Robert Kneschke sued LAION, a non-profit that publishes datasets of image links and captions used to train image generators, over a copy of his photo. The Regional Court of Hamburg ruled for LAION in 2024 under the scientific research exception. On December 10, 2025 the Higher Regional Court of Hamburg dismissed his appeal, holding that the copying was also covered by the general TDM exception and that a reservation written in plain language in website terms was not machine-readable. It allowed a further appeal to Germany's Federal Court of Justice.
Other countries draw the line differently. The UK's exception, section 29A of the Copyright, Designs and Patents Act 1988, added on June 1, 2014, covers copying for computational analysis only for non-commercial research, and contract terms cannot override it. Japan's Article 30-4 permits uses of a work that are not aimed at enjoying the thoughts or feelings it expresses, including data analysis, unless the use would unreasonably prejudice the copyright owner's interests. The United States has no specific TDM exception; AI training cases there turn on fair use.
In practice, for anyone publishing online in the EU, the opt-out is the main lever: content that carries a valid reservation of rights falls outside the Article 4 exception, and after the Hamburg appeal ruling a plain-language notice alone may not count. For AI developers, the exceptions explain why the same dataset can be lawful in one country and contested in another.
It is a copyright rule that allows copying of works for automated analysis without the rights holder's permission, within set conditions. In the EU, Article 4 of the 2019 copyright directive allows it for any purpose where the user has lawful access and the rights holder has not opted out. Article 3 gives research organisations a wider exception for scientific research. The Article 4 exception allows copying of lawfully accessible works for text and data mining unless rights holders have reserved their rights. The EU AI Act requires general-purpose AI providers to respect those reservations and publish a summary of their training content. Whether particular training practices fit within the exception is being tested in court. Under Article 4(3) of the EU directive, they must reserve their rights in an appropriate manner. For content made publicly available online the directive gives machine-readable means as an example. In December 2025 a German appeal court held that a reservation written in plain language in a website's terms did not meet that standard. The UK has one, but it is narrow. Section 29A of the Copyright, Designs and Patents Act 1988 allows copying for computational analysis only for non-commercial research by people with lawful access to the work. Commercial AI training is not covered by it.Common questions
What is the text and data mining exception?
Can AI companies train on copyrighted work in the EU?
How do rights holders opt out of text and data mining?
Does the UK have a text and data mining exception for AI?
Search for "Article 4 DSM Directive", "TDM opt-out", "section 29A CDPA" or "Japan Article 30-4 AI". The statutes themselves, available on EUR-Lex, legislation.gov.uk and official translation sites, are the authoritative sources, along with court judgments and guidance from copyright offices and the EU AI Office. Commentary from law firms and academic copyright scholars helps with interpretation, but check the date, since cases and guidance are moving quickly.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.