

CLARIN, the Common Language Resources and Technology Infrastructure, is a research consortium of organisations working on natural language processing.
The Polish consumer protection and competition authority wanted to use those capabilities in a system that detects abusive clauses in legal agreements automatically. As part of CLARIN, Netguru worked with a university in Wrocław on a model to prove it can be done.
Almost every online service requires agreeing to terms and conditions. Most people do not read them, and those who do usually lack the legal knowledge to tell whether a clause is valid.
An unlawful clause is often worded almost identically to a lawful one, differing only in small details — so people sign agreements they should not.
Only legal experts can find illegal clauses, and only by reading documents closely, which cannot be done at the volume consumers actually face.
The task was to demonstrate that automatic detection could work well enough to protect consumers from corporate abuse.

What we did
Netguru’s NLP team worked alongside researchers at a Wrocław technical university and demonstrated that a system can identify abusive contract clauses in most cases.
The best model reached a macro average F1 of 0.87, which on a zero-to-one scale is a strong result for this kind of task.
The dataset went to the client, to act as a benchmark against which future systems can be measured.
Netguru and the University are co-authoring a scientific paper so the findings can inform future approaches to recognising unfair contractual terms.
The point of the work is protecting people in Poland and elsewhere from agreements they were never in a position to assess.
What’s next