---
title: "Computational Identification of Regulatory Statements in EU"
description: "A study comparing grammatical rules and LEGAL-BERT for finding sentences in EU legislation that state a legal rule and identify who it regulates."
canonical: "https://research.elamur.ai/free/en/papers/brandsma-2025-computational-identification-regulatory-statements-eu/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/brandsma-2025-computational-identification-regulatory-statements-eu/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / Computational Identification of Regulatory Statements in EU Legislation

# Computational Identification of Regulatory Statements in EU Legislation

Paper · 2025 · Gijs Jan Brandsma, Jens Blom-Hansen, Christiaan Meijer et al.

**Authors:** Gijs Jan Brandsma, Jens Blom-Hansen, Christiaan Meijer and Kody Moodley · **Year:** 2025 · **Venue:** arXiv:2505.00479 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

[**1** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W6891853680) · [arXiv:2505.00479](https://openalex.org/S4306400194) · [licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2505.00479)
- [arXiv 2505.00479](https://arxiv.org/abs/2505.00479)
- [OpenAlex](https://openalex.org/W6891853680)

Citations: OpenAlex, 2026-10-14.

## Summary

The word “shall” can introduce a duty, announce when a decision takes effect, or lead into details about a rule stated elsewhere. All of those sentences may matter to a lawyer. They play different roles, however, in a study that aims to count the rules in a piece of legislation. Brandsma and colleagues ask whether a computer can recognize the sentences that state a core regulation directed at a legal actor. A reliable way to find these sentences would give researchers a starting point for measuring how much EU legislation regulates and how its requirements vary across policy areas and over time.

The authors define their target using the Institutional Grammar Tool. Under their definition, the core sentence identifies an actor, expresses a requirement through a word such as “must” or “shall”, and specifies the action or outcome at issue. Conditions and penalties can appear in the same sentence or elsewhere. The researchers extracted sentences containing either of the selected modal verbs from the articles of EU legal acts. They then had specialists label approximately 7,200 examples, sampled across adoption years and policy areas, to assess whether the sentences expressed a core regulation.

The paper compares a rule-based method with a learned classifier. The first uses [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/) to map grammatical relationships between words. It searches for an action verb connected both to a modal and, through the sentence structure, to a noun that could name the regulated actor. The second uses [LEGAL-BERT](https://md.research.elamur.ai/free/en/papers/chalkidis-2020-legal-bert-muppets-straight-out/) to represent the sentence numerically, then trains a classifier on those representations. Against the human labels on the shared test set, the grammatical method achieved an accuracy of 0.80 and the LEGAL-BERT classifier achieved 0.84. The grammatical method had the highest precision when it predicted that a sentence was regulatory. LEGAL-BERT recovered more of the sentences the annotators marked as regulatory.

Agreement between the two approaches, measured by Krippendorff’s alpha, was 0.58. The error analysis gives this difference a practical meaning. The learned classifier could pick up sentences whose actors were referred to by pronouns or unfamiliar abbreviations, while the grammatical method could reject some sentences that put a process in the apparent position of a regulated actor. A separate analysis of the learned classifier found that action verbs frequently mattered in successful regulatory predictions, while wording associated with amendments and surrounding context often mattered in successful non-regulatory predictions. The authors propose combining the approaches to take advantage of these differences. The reported scores come from the separate classifiers.

## Deep dive: Computational Identification of Regulatory Statements in EU Legislation

A study comparing grammatical rules and LEGAL-BERT for finding sentences in EU legislation that state a legal rule and identify who it regulates. · about 35 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a count of regulations would count

EU legislation supplies both the material for the study and the reason for automating it. The paper describes approximately 180,000 legislative documents published from 1952 to 2023 and available digitally in English. Individual acts can contain several articles and address matters as different as climate policy, agriculture and taxation. The authors want to study the distribution of regulation across that body of law. To do this, they first need an observation they can make consistently across documents. Their candidate is the presence of a sentence that states a core rule and identifies the entity subject to it.

A document count answers a different question. An act is a publication unit and can contain several distinct instructions, alongside material that explains the legislation or sets out how it relates to earlier acts. Counting sentences containing particular words would make the unit smaller, but would still leave its significance uncertain. A provision with several sentences explaining how a duty applies could register several apparent rules, even when those sentences elaborate the same requirement. A terse provision could give the impression of regulating less simply because it packs the details more tightly.

The paper illustrates this with a recycling requirement. One sentence tells citizens to sort their recyclables. A separate sentence can specify when to do it and what happens if they fail to comply, using obligatory language of its own. For the authors’ intended count, the instruction directed at citizens is the core regulation. The details about timing and penalties help a reader understand the duty and its consequences. If those details were spread out further, the intended count would still track the original instruction, provided the additional sentences serve the same supporting role.

The operative articles themselves also contain language that can defeat a search based on keywords. An act can use “shall” in an announcement of its application date or its entry into force. A human reader distinguishes the date that gives a decision effect from an instruction directing a particular actor to do something. The keyword identifies an interesting candidate in either case. The classification depends on what the sentence says about an actor and an action. This is why the paper uses modal verbs as a first filter and then examines sentences that have already passed it.

The distinction also matters to the paper’s proposed uses. A legal practitioner looking for possible obligations imposed on a client wants to move from a large collection of texts to the passages most likely to address conduct by a relevant party. For comparative research, the aim is different. A consistent rule count could help scholars study changes across industries, policies or periods. The same count might support examination of earlier legislation by people responsible for drafting new acts. In each case, finding the relevant sentences is an upstream operation. The work that follows depends on what a positive label represents.

#### How the paper draws on institutional grammar

The Institutional Grammar Tool, or IGT, gives the authors a vocabulary for explaining the contents of a rule. An attribute identifies the actor. A deontic expression marks the obligation or another normative status. An aim gives the action or outcome. A condition specifies the circumstances in which the rule applies. An or-else component gives the consequence of noncompliance. The components are collectively called ADICO. The letters A, D and I are especially important here because they express who is subject to the rule, the requirement, and what it asks of that actor.

These are roles in the institutional statement. The grammar of a particular sentence supplies evidence for those roles. An ordinary noun such as “citizens” can fill the attribute role if its relationship to the action shows that the requirement applies to citizens. A word can also identify an actor in the ordinary sense while serving another purpose in the sentence. For instance, an organization might be mentioned as the source of a document that an unnamed party has to follow. The fact that the organization is capable of acting leaves open whether it is the party governed by this particular sentence.

The paper’s classification unit is therefore a sentence, while its motivating object is a rule. Those units line up most clearly when a sentence presents the actor, the requirement and the action together. They can diverge when the language relies on an earlier sentence or spreads institutional information through a provision. The project takes advantage of the observation that the core and the details can often be distinguished. Its positive class is designed to capture the core locally, leaving the wider passage available to anyone who wants to reconstruct the conditions and consequences.

#### Where deontic sentence classification fits

The closest earlier work, in the authors’ account, is deontic sentence classification. This area groups legal statements by the kind of normative information they express, such as an obligation, a permission or a prohibition. Some studies also distinguish statements that establish an institutional or legal arrangement. The paper relates this work to deontic logic, which provides ways of representing and reasoning about normative statements. Here the computational interest is how to identify and categorize the ordinary written sentences that express them.

The recycling example explains why a distinction between those research goals matters. A deontic classification task can recognize that both the core sentence and its supporting sentence express an obligation. The IGT-based task asks a separate question about each sentence’s role in stating the regulation. A sentence can carry deontic information yet receive the non-regulatory label for this particular count. Conversely, the regulatory label gives the reader little detail about the type of deontic expression. The study uses a binary decision because that is the output needed for locating potential observations before a study of regulatory density.

The paper describes work by Dragoni and colleagues on the Australian Telecommunications Consumer Protection Code. They used language processing, ontologies and logic-based analysis of grammatical relations to examine normative statements. Their analysis also decomposed sentences to represent finer aspects of their normative structure. This provides a precedent for reading legal sentences through the relations between their parts. The EU study uses that kind of structure to answer a narrower question about the presence of a core rule.

The paper also discusses O’Neill and colleagues’ work on financial regulation in EU and UK texts. They compared classifiers for obligations, permissions and prohibitions, using numerical word representations such as [word2vec](https://md.research.elamur.ai/free/en/papers/mikolov-2013-efficient-estimation-word-representations-vector/) and [GloVe](https://md.research.elamur.ai/free/en/papers/pennington-2014-glove-global-vectors-word-representation/). These representations, called [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), supply numerical features that a classifier can use. The paper describes neural classifiers as the stronger group in that comparison and singles out the approach based on bidirectional long short-term memory. The subject matter of that study was financial regulation, while Brandsma and colleagues wanted to sample legislation with different policy purposes.

Liga and Palmirani brought transfer learning to the classification of provisions in the General Data Protection Regulation, or GDPR. They adapted previously trained systems to determine whether sentences carried deontic information or expressed legal rules, and to distinguish types such as obligations, permissions and constitutive rules. Their examples were represented in annotated legal XML using Akoma Ntoso and LegalRuleML. The approaches included [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/), [DistilBERT](https://md.research.elamur.ai/free/en/papers/sanh-2019-distilbert-distilled-version-bert-smaller/) and LEGAL-BERT. Liga and Robaldo later investigated GPT-3 on the same GDPR data. In this line of work, [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) adapts the previously trained system to the target task. The EU-wide study instead trains a separate classifier on features produced by a pretrained encoder.

Contracts supply another setting for the related task. The paper discusses LEXDEMOD, a benchmark developed by Sancheti and colleagues. In that benchmark a sentence can express several deontic types with respect to a mentioned agent, and the prediction is made with that agent in view. The systems assessed included [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/). The fact that the label can depend on which agent is under consideration connects this work to the actor question in the EU study. The contract benchmark addresses the types of normative statements concerning an agent. The EU study asks whether the sentence satisfies a particular criterion for counting a core rule.

From this literature, the paper identifies a gap in both scope and comparison. Earlier work had investigated useful categories and methods in settings such as financial legislation, the GDPR and contracts. The authors wanted a binary classification study designed to draw on EU legislation across subject areas and adoption years. They also wanted to compare the decisions of a grammar-based approach with decisions made using learned sentence features. A comparison of this kind can show whether approaches with similar overall performance reach their decisions on the same kinds of sentences.

### The method, step by step

The study begins by deciding what the positive label should mean. It then finds parts of legislative documents in which such sentences are likely to appear and filters those parts for the selected modal verbs. Both classifiers work on candidates from this pipeline. One uses an explicit test of grammatical relationships and agenthood. The other learns from human classifications of candidate sentences. They are compared on the same held-out sentences, so a difference in how they classify an example can be studied directly.

From EU legislative documents to sentence classifications The steps in order.

#### Turning institutional grammar into a sentence label

The authors require a positive sentence to express the attribute, deontic and aim components. They require the attribute to be an agent noun, the term for a noun that names whoever or whatever carries out an action. The noun can be a name, such as “United Kingdom”, or an ordinary noun denoting an actor, such as “citizen”. This requirement is meant to keep the decision focused on whether the sentence identifies a regulated party. The condition and or-else components may also be present. The sentence can qualify even when those details have to be recovered from elsewhere in the act.

Consider the recycling example as a set of roles. The actor is the group of people given the instruction. The modal supplies the obligatory force. The verb supplies the relevant action, in this case sorting recyclable material. A time clause can tell the actors when they must do this, and a further clause can specify a fine. Once the actor, requirement and action are present together, the sentence already contains the part the authors want the classifier to find. Adding the time or penalty clause changes the amount of legal detail available in the sentence while preserving its role as an expression of the core rule.

This definition gives the annotators a distinction to apply and the grammatical classifier a test to approximate. Finding a term that can denote a person or organization is only part of the test. Its relationship to the relevant action matters. Similarly, finding a modal and a content verb gives evidence of a requirement but leaves the identity of the entity subject to it unresolved. The rule-based approach treats these pieces as conditions that have to come together around the same lexical verb.

#### Finding candidates in legislative documents

The document collection described in the data selection procedure covers 1970 to 2022 and comprises approximately 120,000 legislative documents. The researchers obtained their full texts through EURLEX. They collected associated metadata through CELLAR using its SPARQL interface, which lets them query records for fields such as adoption date, policy area, document identifier, legal form and addressee. Dates and policy codes serve a direct purpose in building the human-labelled sample. Having those fields alongside the text allows the researchers to sample within policy areas and years even after the act has been divided into sentences.

Document length varies widely. The authors give a mean of 4,000 words, a median of roughly 1,000 words, and a standard deviation of approximately 9,000 words for the collected acts. The median identifies the midpoint of the lengths, while the mean responds to the very long documents in the collection. The standard deviation describes the spread of lengths. In practical terms, the amount of text contributed by different acts varies substantially before the researchers apply any filter.

The team focused on the articles of the acts. The start of this part of a document is signalled by an adoption formula that varies with the legal instrument. The close can be signalled by a formula naming a place such as Brussels or Luxembourg. The two EU policy specialists compiled a dictionary of these opening and closing formulas. The preprocessing code used those markers to extract the articles and leave out material such as introductory recitals, statements of legal basis, appendices and tables.

The extracted article text was then divided into sentences through [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) at sentence boundaries. The filter kept sentences containing “must” or “shall”. Both negative forms pass because they contain the same modal verbs. Each candidate can therefore be considered for the regulatory label whether the action is required or forbidden. The remaining task is to distinguish sentences that use these expressions to regulate an actor from sentences that use them for other functions within the legislation. The resulting corpus contained approximately 0.6 million candidate sentences.

There are different levels of selection here. The collection of acts defines the available source material. The boundary dictionary defines the part of each act inspected. Sentence segmentation supplies the individual units. The modal filter determines which units become candidates for classification. The held-out test is drawn at the end of these steps. Its sentences already come from the articles and already contain the selected modal language.

#### Developing the grammatical rules

The authors drew a random sample of 100 candidates to develop the grammatical approach. The two EU policy specialists supplied regulatory or non-regulatory judgments according to the institutional grammar definition. The annotations were recorded in a CSV file, with the sentence and its label stored together. The researchers examined the parse trees for the sample by hand to see which patterns could recover the institutional roles from ordinary syntax.

A dependency tree represents a sentence as words joined by grammatical relationships. It can connect a lexical verb, which supplies the substantive action or outcome, to an auxiliary verb such as “must”. It can also connect the action to a subject or to material in another part of the sentence that identifies an actor. The authors used spaCy version 3.7.2 with the default English package `en_core_web_sm`, version 3.7.1. In this approach, the parser supplies grammatical links and word categories. The researchers supply the decision rule that reads those outputs.

The rule starts with a lexical verb. It requires a grammatical relation between that verb and an auxiliary made up of one of the selected modals. It then looks for a path through the tree between the same lexical verb and an agent noun. The modal supplies evidence for D, the lexical verb for I, and the candidate actor for A. By looking for both relationships from the same verb, the procedure tries to find a connected expression of a regulation even when a sentence contains several actions or mentions several potential actors.

The direction of the search is expressed relative to word order in the sentence. The paper calls a path backward when it starts by moving towards an earlier word, and forward when it starts by moving towards a later word. These directions concern where the words occur, regardless of how the dependencies are drawn as arrows. In the active wording of the recycling example, the actor occurs before the verb that describes the sorting action. A backward path can reach that actor. In a passive construction, the thing being acted on may come first, while the actor follows the lexical verb. A search that can begin forward allows for an explicit actor in that position.

The next step is deciding what counts as an agent noun. The parser’s [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) can identify proper nouns. This helps with names of countries and other named entities. Common nouns such as “workers” or “councilors” can designate the subjects of legal requirements just as readily, so the authors added a lookup in ConceptNet. This multilingual [knowledge graph](https://md.research.elamur.ai/free/en/concepts/knowledge-graph/) stores relations between words and phrases. One of those relations identifies a term as a more specific member of a category. The authors checked whether a noun had that relation to the ConceptNet category for an agent.

The grammatical test thus draws on evidence from separate sources. The parse gives the connection from the lexical verb to a noun, and tagging or the dictionary helps decide whether the noun can denote an actor. When these line up with the modal relation, the candidate passes. The approach handled negative wording such as “must not” through the same rules, since the lexical verb can still have the required relation to “must”. The initial design classified 88 of the 100 development sentences correctly. That figure describes the sample used to find the patterns. The shared test set provides the later performance measurement.

#### Producing the larger human-labelled sample

For the learned classifier, the team used [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) on a much larger sample. The stated design uses stratified random sampling. A stratum is a group from which examples are sampled separately. Here a stratum combines an adoption year with a main policy area. For instance, the same area in different years belongs to different groups, and different areas in the same year also belong to different groups. This structure gives the sample an opportunity to include varied language even when some areas or years contribute many more candidates to the source corpus than others.

The sampling design uses 52 adoption years, given as 1971–2022, and 20 policy areas. The paper expresses the number of year-and-area combinations as follows.

```
52 × 20 = 1,040
```

Here 52 is the number of adoption years and 20 is the number of main policy areas. The multiplication sign, ×, indicates that each year is paired with each area. The equals sign, =, gives the resulting 1,040 possible strata before the availability check.

The planned allocation was seven sentences per stratum, chosen at random. Six strata had fewer than seven available sentences and were excluded, leaving 1,034 strata in the sampling account. The paper reports a labelled collection of roughly 7,200 sentences. Equal allocation means that an eligible stratum contributes the same number of candidates as another eligible stratum, even when their underlying collections of legislative sentences differ substantially in size.

The annotators were the two EU policy specialists involved in defining the task and identifying the boundaries of the articles. Both had experience applying the IGT to policy texts. They split the large batch into equal parts and labelled their respective parts separately. They conferred in a small number of exceptional cases. The label attached to each sentence served as the reference judgment for training or evaluation. The larger dataset was then split randomly, with 80% used for training and 20% for testing. The grammatical classifier was evaluated on that same 20% test split.

#### Training a classifier on sentence representations

The learned method has a feature extraction stage and a classification stage. A pretrained [transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) reads a sentence and produces a numerical representation. The representation gives the classifier input that depends on the words and their context. The classifier sees these numerical features alongside the human labels during training and learns to predict the label of a sentence from its features. The same extraction procedure is then applied to the held-out sentences.

The paper tests three sources for the features. BERT supplies the general baseline. LEGAL-BERT is a natural candidate for the task because its pretraining used English legal corpora amounting to 0.45 million documents, including EU legislation up to 2020. InLegal-BERT extends LEGAL-BERT with training on an additional 5.4 million Indian legal documents in English. It offers a comparison in which further legal pretraining comes from a different legal context. [InLegal-BERT](https://md.research.elamur.ai/free/en/papers/paul-2022-pre-trained-language-models-legal/) provides the features for the third configuration.

For each feature source, the authors train a binary classifier using [XGBoost](https://md.research.elamur.ai/free/en/papers/tianqi-2016-xgboost-scalable-tree-boosting-system/). XGBoost is a tree-boosting system. Here it learns how to use the extracted numerical features to distinguish the labelled regulatory and non-regulatory sentences. The study describes this as feature-based transfer learning. The previously acquired ability to represent language enters through the encoder, and the task-specific decision is learned by the classifier trained on the EU labels.

The learned approach can use clues of a different kind from those the grammatical rules explicitly require. For instance, the representation of a verb depends on the sentence around it, and a prediction can draw on evidence from several places in the sentence. Training supplies direct examples of how specialists label sentences containing such evidence. There is no supervised output in this setup for the particular noun that serves as the attribute. The prediction concerns the regulatory status of the whole sentence, so the label alone leaves it open how the classifier treated any individual phrase.

#### Investigating what influenced the learned decisions

The authors carried out a separate [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) study on the strongest feature-based classifier. They used DIANNA, a software library offering several approaches to explaining classification decisions. For text, they chose [LIME](https://md.research.elamur.ai/free/en/papers/ribeiro-2016-why-should-i-trust-explaining/), whose attribution values in their setup have a clear neutral point at 0. An attribution is a score for how much a particular word contributes to a prediction in the example being explained.

LIME builds an explanation around a particular input. It generates versions of the sentence with randomly chosen tokens temporarily masked and submits the altered versions to the classifier. It then learns a simpler local representation of how the prediction responds to these changes. The words whose presence makes more of a difference get higher attribution scores in the paper’s account. The scores belong to specific occurrences of words. The same word can have different scores in sentences containing different information.

The masking is random, so a small batch of variants can give unstable estimates. The researchers increased the number of variants per sentence until the attributions stabilized across runs. They applied the procedure to 300 sentences sampled at random from the test set, which the paper describes as containing roughly 1,450 sentences. The analysis required repeated predictions for each sentence, and computational resources limited the number of test sentences they could process.

The researchers kept the explanations for correctly classified regulatory sentences, called true positives, and correctly classified non-regulatory sentences, called true negatives. Within each retained sentence, they identified the three words with the highest attribution. They then counted how often different words occurred in these positions. This procedure gives a word credit each time it ranks among the most influential in a retained sentence. The count answers how often it was prominent under the selection rule. It is a different quantity from the word’s average importance whenever it occurs.

The authors also measured how early an influential word appears in its sentence. Their position calculation can be written as follows.

```
P = (s ÷ L) × 100
```

Here P is the relative position of the word as a percentage of sentence length. The value s is the starting character index of the word, and L is the sentence length in characters. The division sign, ÷, forms the share of the sentence preceding the word’s starting index. Parentheses group that division, and × means multiplication. Multiplying by 100 puts the position on a percentage scale. The equals sign, =, assigns the resulting value to P. This makes it possible to compare positions in sentences of different lengths.

The paper makes the code, raw and processed data, and analysis materials publicly available. It names the `nature-of-eu-rules` organization and the `data-extraction`, `data-preprocessing` and `regulatory-statement-classification` repositories, which cover retrieval, candidate preparation and classification respectively. It also reports archiving the raw legislative texts and the processed research data on Zenodo. These materials correspond to different stages of the study, from identifying the source acts to examining individual predictions.

### Experiments and results

#### What the shared test measures

The main comparison uses the held-out 20% of the approximately 7,200 human-labelled candidate sentences. The 80% training partition supplies labels to the XGBoost classifiers. The grammatical approach draws its rules from the separate development exercise and applies them to the held-out candidates. The reference for the comparison is the human regulatory or non-regulatory label associated with each candidate. Because the systems classify the same cases, the paper can compare their scores and inspect examples where their decisions diverge.

Accuracy describes how frequently the predicted label matches the human label across the test sentences. Precision for the regulatory class takes the sentences classified as regulatory and asks how many have that human label. Recall for that class takes the human-labelled regulatory sentences and asks how many the classifier finds. The equivalent measures for the non-regulatory class reverse the class of interest. F1 summarizes precision and recall together. Using several measures matters here because a system that sets a demanding condition for a positive prediction may do well at precision while leaving more of the relevant sentences unrecognized.

Krippendorff’s alpha measures agreement while accounting for agreement expected by chance. The paper uses it for comparisons with the reference labels and for a separate comparison between the best learned classifier and the grammatical approach. The former asks how closely a set of predictions agrees with the human labels. The latter asks whether the two computational approaches agree with each other. Keeping track of the pair being compared is essential because these coefficients answer different questions about the same held-out examples.

#### Overall performance and the baselines

On the shared test set, the grammatical classifier achieved 0.80 accuracy. The classifier trained on LEGAL-BERT features reached 0.84. The paper reports that both approaches obtained F1 scores exceeding 0.8. LEGAL-BERT gave the strongest overall performance among the feature extractors. Its advantage over the general BERT baseline and over InLegal-BERT was described as slight. This comparison keeps the classification approach based on XGBoost and changes the source of the sentence features.

Classifier accuracy on the held-out EU legislative sentence set The classifier using LEGAL-BERT features achieved the highest overall accuracy.

**The numbers**

| System or setting | accuracy |
| --- | --- |
| Grammatical dependency analysis | 0.80 |
| LEGAL-BERT with XGBoost (this paper) | 0.84 |

The class-specific results explain an important difference that the accuracy chart leaves out. The dependency approach had the highest precision for regulatory predictions and the highest recall for non-regulatory sentences. When it found the combination of modal, action and agent required by its rules, the positive prediction was comparatively reliable. Its stricter decisions also allowed it to retain more human-labelled non-regulatory sentences in the negative class. The other side of that behavior was weaker recall for regulatory sentences and weaker precision for non-regulatory predictions. LEGAL-BERT found more of the sentences that the specialists treated as regulatory.

For the grammatical approach, alpha against the human test labels was 0.59. The paper describes both legal BERT variants as having substantially higher agreement with those labels. The comparison of LEGAL-BERT with the grammatical approach gave 0.58. That last coefficient is an agreement statistic for the two sets of computational labels. It helps explain why the authors went beyond identifying a winner by accuracy and asked which errors were specific to each method.

One practical consequence concerns which predictions would need human review. A set selected for high regulatory precision would contain comparatively fewer irrelevant passages among its flagged sentences. Reviewers looking for broad coverage of regulatory material would care about how many relevant sentences were missed before review could begin. For a study that counts predicted regulatory sentences, both error types matter. The same net count could arise from different combinations of false positives and false negatives, and the paper’s interest in policy and time makes the kinds of sentences involved relevant alongside the aggregate scores.

#### Words and sentence positions in the explanation sample

The explanation analysis produced a list of frequently influential words for each correctly predicted class. A word appears in the plots when its frequency reaches the cutoff of five under the study’s ranking procedure. Within the list for correct regulatory predictions, the authors describe 60% of the displayed words, 15 out of 25, as verbs expressing an action that could serve as the aim of a regulation. The corresponding list for correct non-regulatory predictions contained no words playing that verb role. The comparison concerns which words repeatedly made the highest-attribution group under the cutoff.

The non-regulatory list included wording the authors associate with conditions, context and changes to existing acts. One prominent example was “following”. In the source legislation, that word commonly appears in clauses that announce the replacement of text in another article. The authors report 275 occurrences in the collection of 7,200 sentences for the short replacement phrase they examine, and roughly 14,000 sentences containing it in the EU source data from which the labelled material was sampled. Those counts describe the prevalence of a drafting expression. The attribution analysis concerns its prominence within selected correctly classified examples.

The influential words tended to occur within the first 10% of characters for both classes. In the explanation sample, the mean relative position was 8.1% for regulatory sentences and 8.1% for non-regulatory sentences. The corresponding median positions were 7% and 8%. The authors saw little distinction between the classes in where their influential words tended to fall. The character-based position measure makes that finding compatible with the marked difference they observed in the lengths of those sentences.

For the regulatory sentences in the explanation sample, the mean length was 217 characters and the median was 166 characters. For the non-regulatory sentences, the mean was 441 characters and the median was 246 characters. The reported standard deviations were 192 characters and 548 characters, respectively. The larger training data did not show the same clear difference in mean and median lengths. The authors did observe a wider spread of lengths among non-regulatory examples there as well. They suggest that length might act as an implicit clue and that detailed contextual language may help explain the longer sentences in the explanation sample.

These observations apply to a sample filtered for correct predictions. They show a relationship between some recurring words, aspects of sentence form and the decisions on those sentences. The order of influence within a sentence comes from the masking experiment. The class-level frequencies summarize which words repeatedly ranked highly across those explanations. This gives the paper a way to compare some of the evidence used by the learned classifier with the roles defined by the institutional grammar.

### What the ablations show

The paper reports no component-removal ablation. Its evidence about why the methods behave differently comes from changing the feature extractor, inspecting individual disagreements, and masking words locally to explain successful learned predictions.

#### Changing the source of the learned features

The closest experiment to a controlled system comparison is the substitution of the encoder that reads each sentence. The classifier remains an XGBoost classifier trained on extracted features. The general BERT baseline supplies a reference for what the procedure can do with general language representations. LEGAL-BERT tests features from legal pretraining that includes EU texts, and InLegal-BERT tests a version with additional exposure to Indian legal documents in English.

LEGAL-BERT’s slight lead tells readers which of these feature sources worked best under the study’s training and test setup. The fairly close results show that the same supervised classification procedure could make use of each source. The comparison varies the encoder and the pretraining experience associated with it together. Consequently, the ordering describes the tested configurations as wholes. Separating the contribution of EU materials from that of the rest of LEGAL-BERT’s pretraining would require a comparison where that exposure alone varied.

The branch based on grammatical dependencies has its own components, including the parser, the path criterion and the ConceptNet lookup. The development analysis provides examples in which one of these components determines the outcome. For instance, recognizing the modal and action is insufficient if the search fails to find an acceptable actor. Such a case can diagnose a plausible source of error even in the absence of a test that removes or replaces one component and then measures performance across the full split.

#### When grammatical evidence reaches the wrong noun

One failure can occur when a dependency path reaches a noun that denotes an actor but plays a different role in the sentence. In one of the paper’s examples, “authorized operators” is a valid expression for an agent, yet the sentence uses it in a way that leaves the regulated party unexpressed. The grammatical rule can reach that phrase, count it as the attribute and produce a false positive. The path and the agent category both supply real information. The missing distinction is the function the noun has in relation to the particular action being regulated.

The authors clarify this with a modified version of the recycling example. If the action is expressed in the passive and the wording identifies authorized operators as the people who must do the sorting, that phrase fills the attribute role. The parser can mark such a phrase with an agent relation. This gives the authors a reason to consider distinctions between dependency types in a future revision. A rule that asks merely whether some path exists admits the two uses of an agent noun. A rule that examines how the noun is linked to the verb has more syntactic evidence available for distinguishing them.

The paper’s example about privileges in aviation illustrates a different difficulty. The sentence says that a competent authority is to limit the privileges of a holder in relation to specified activities. The passive wording led the grammatical procedure along a forward path to the authority. The term was absent from the ConceptNet lookup used by the study, so the procedure failed to identify an attribute. The authors’ analysis identifies the holder as the regulated party. The holder occurs earlier in the sentence, within the phrase about the privileges, and the forward search passed over that location.

This case distinguishes two questions that frequently coincide. A sentence can make clear who carries out the action described by a passive verb. It can also identify whose rights or conduct the legal constraint concerns. In the aviation example, the authority and the holder fill those different roles. Adding the authority to an agent dictionary would help recognize it as an entity capable of acting. The challenge of selecting the holder as the legally relevant attribute would still depend on interpreting the structure of the whole instruction.

#### When the actor is implicit or unfamiliar

The shared test comparison takes up cases where the learned classifier succeeds and the dependency method returns a negative label. Several involve sentences headed by “it” or “they”. A pronoun can refer to a body identified earlier in a provision and introduce a substantive instruction for that body. A pronoun can also occur in a sentence that explains how to carry out a rule already stated. The grammatical search uses an agent noun as the evidence it requires, so pronoun-led cases may fail even where the human label treats the sentence as expressing a core regulation.

Some missed cases do contain a name for the actor, expressed as an abbreviation. The authors give the examples of the International Sustainability Standards Board, abbreviated ISSB, and an Approved Reporting Mechanism, abbreviated ARM. Both occur in test sentences instructing their subjects to carry out monitoring or related work. The English parser did not assign the relevant name category to these abbreviations, and the dictionary route did not recognize them as agents. The learned classifier returned the human regulatory label on these examples.

The paper contrasts these cases with familiar abbreviations such as UK and EU, which the grammatical pipeline recognized. For a rule system, the example shows how a difference in vocabulary can block an otherwise plausible analysis. A system might see a modal connected to a clear action and still fail because its actor evidence depends on a limited lexical resource or an incorrect tag. A classifier trained on whole-sentence features can draw on the broader pattern of the sentence when an individual token offers little recognizable evidence on its own.

The case analysis supports the authors’ description of LEGAL-BERT as better at handling some implicit attributes and unfamiliar organization names. The supported observation is that it classified the sentences correctly against the reference judgments. For pronouns, the experiment records a sentence label and does not identify the antecedent selected by the classifier. For abbreviations, it shows successful classification without revealing whether the classifier learned what the acronym referred to or responded to the surrounding language typical of a requirement.

#### When a process resembles the subject of a duty

The paper also examines cases where the grammatical method supplies the more accurate decision. One example concerns a data exchange expected to conform to a vessel-position implementation document. The relevant noun phrase denotes a process. Under the study’s definition, it supplies no legal actor being regulated by the sentence. The learned classifier gives a regulatory prediction, while the grammatical approach correctly rejects the process as an agent in this example. The authors found over ten cases of this type, around 1% of the test set.

The expression has surface characteristics that make the mistake intelligible. It uses obligatory language and describes compliance, a familiar action in legal instructions. Its grammatical subject, however, is the data exchange. The institutional classification depends on the role of the noun phrase, including what kind of thing it denotes. The explicit agent requirement gives the dependency-based procedure a way to reject some examples that otherwise look much like ordinary regulations.

This advantage complements the result for abbreviations. The agent requirement can exclude a process correctly, and it can exclude an unfamiliar organization incorrectly. The difference matters for understanding the approach’s precision and recall. Relaxing the requirement could rescue cases with a weakly recognized actor and also admit more process subjects. Improving the evidence for agenthood or the relation between the action and the actor would address a more specific failure.

#### What token masking contributes

The explanation analysis points to a partial correspondence between the learned predictions and the IGT definition. Verbs in the regulatory list frequently express the kind of action assigned to the aim component. Words often used in amendment or contextual language feature in the successful non-regulatory predictions. The most frequently influential words thus help explain why two sentences that both contain a modal can receive different labels. The classifier has evidence available in the language that accompanies the obligation.

The amendment example also shows how a classifier can find a regularity that lies outside the explicit grammatical rule. A commonly recurring replacement formula is evidence about the drafting function of a sentence. The grammar-based test asks whether the relevant verb has a modal and can reach an agent noun. The learned representations can also carry information about a phrase’s similarity to recurrent contextual or editorial wording in the training data. The attribution result identifies a prominent word occurrence in that wording. It leaves the importance of the formula as a whole open.

The position results offer a further check on an interpretation of the token lists. Both classes had highly attributed words near the beginning, so the authors observed little class difference in relative position. They had more reason to consider length as a possible clue, given the variation in sentence lengths in the explanation sample. A direct test of that hypothesis would need to distinguish length from the content that makes a sentence long. The reported comparison describes the examples that the explanation analysis retained.

The authors’ proposed combination draws on these complementary failures. The grammatical approach could handle the cases in which it has identified an attribute, while the learned classifier could be used for cases where attribute identification failed. The proposal aims to preserve the grammatical method’s stronger basis for rejecting unsuitable nouns and recover rules with actors it overlooks. The reported agreement and examples explain why the authors considered this combination. They leave the combined classifier’s precision and recall unmeasured.

### Limitations

#### Limits the authors identify

The authors describe their dependency patterns as an initial treatment of the ways a regulated actor can appear. The rule reaches many explicit subjects and some actors in passive constructions. Its errors include unusual phrasing, passive sentences in which the expected direction leads to a different entity, and grammatical structures where a related noun has the wrong institutional function. More specific dependency relations and paths could help distinguish some of these cases. The paper records that extension as future work.

A limitation at the level of source documents concerns optical character recognition, or OCR, for some legislation before 1990. OCR converts document images into text. In scans with a double-column layout, especially when sentences continued across page breaks, the conversion could join fragments in the wrong order. Such a fragment could pass the modal filter even when it no longer formed a coherent sentence. The authors say they were unable to remove these cases automatically and therefore relied primarily on more recent legislation for the evaluation. They give 2000 to 2023 when discussing that emphasis.

The authors explicitly acknowledge that the restriction affects generalizability. Their manual inspection suggested that language and phrasing in regulations before 2000 were broadly similar to those in later documents, and they expect the approach to extend to legislation before the 1990s. That expectation is based on inspection of the language. Performance on earlier material would also depend on the quality of the text delivered to the sentence segmenter, the parser and the encoder. A classifier can face a damaged input even when the underlying drafting conventions are familiar.

The accounts of year coverage also differ across the paper. The data section gives 1970 to 2022 for the retrieved collection and 1971–2022 for the stratified sampling design. The discussion of OCR says that evaluation sentences came primarily from 2000 to 2023. The paper does not reconcile those accounts or give a breakdown of the final test sentences that resolves the discrepancy. The earlier year range describes the breadth sought in collection and sampling, while the OCR discussion qualifies how confidently that breadth can be carried over to the evaluation.

The authors also identify a limitation of their explanation procedure. It returns attributions for individual tokens, while the evidence that a domain specialist wants to understand may be an entire phrase. An actor, modal and action may convey a recognizable obligation when combined. Their separate attribution scores give no direct estimate of the effect of that combination as a unit. The paper proposes masking [n-grams](https://md.research.elamur.ai/free/en/concepts/n-gram/), or consecutive groups of words, to see whether phrase-level explanations would be easier to interpret. It also raises the possibility of using [SHAP](https://md.research.elamur.ai/free/en/papers/lundberg-2017-unified-approach-interpreting-model-predictions/) in follow-up analyses that consider both individual predictions and patterns across them.

#### Limits that follow from the setup

The performance measures apply after the cor­pus preparation filters. A sentence discarded by the document-boundary search, segmentation or modal filter had no opportunity to receive a positive prediction. The evaluation establishes how the methods distinguish labels among candidates containing “must” or “shall”. End-to-end recall across all legislative text would also depend on how much regulatory material enters that candidate set. The paper’s test does not estimate the availability of relevant sentences outside it.

Likewise, the positive class is tied to the paper’s definition. The evaluation establishes agreement with specialist judgments about a sentence’s role in expressing a core regulation. A negative prediction can apply to material important for determining the scope or effect of the law. Conditions, enforcement consequences and amendments may determine how a duty works in practice. A count built from these outputs would track a deliberately selected part of legislation. The study does not supply an estimate of regulatory strictness or measure how strictness varies across time and policy.

There is also a boundary around the treatment of actors. The definition stresses explicit mention and an agent noun, yet the error analysis includes human-labelled regulatory sentences with pronouns. In practical terms, the expert judgments sometimes recognize a core regulation even when the sentence uses a reference whose full identification depends on context. The rule-based implementation has difficulty with that class of examples, and the learned classifier can recover some of their labels. The study does not establish a general policy for when an expressed pronoun counts as sufficiently explicit, or measure how frequently a classifier can link it to the correct entity in preceding text.

The larger corpus used specialist annotation, with the work divided between the two annotators. This arrangement made it practical to label the required number of sentences. Since each specialist generally labelled a separate set, the study does not provide a full independent agreement estimate on shared examples. Alpha for a classifier against the labels evaluates agreement with the reference set. A separate human agreement study would be needed to quantify how frequently another specialist applying the same definition would assign those labels, especially on borderline cases involving pronouns, process nouns or amendments.

The year-and-area design also affects the interpretation of the aggregate metrics. Equal allocation gives eligible strata similar influence in the planned labelled sample, while the underlying candidate collection can contain many more sentences in some strata than in others. Performance in that sample therefore describes the evaluation’s mixture of examples. Using the classifier to count regulations in the underlying collection would give the larger strata more influence on a corpus-wide result. The paper does not report a set of year-by-area error estimates from which that change in weighting could be assessed.

The random split holds out sentences. The described procedure gives no separate performance estimate for acts, policy areas or periods held out in their entirety. A corpus built from recurring legal formulas can place similar language on both sides of a sentence-level split. LEGAL-BERT’s pretraining also included EU legislation through 2020, and the paper gives no assessment broken out by which test documents the encoder may have encountered at pretraining time. These features of the setup leave open how well the observed scores would carry over to documents with materially different wording or to a period evaluated separately.

Finally, the selected explanations describe successful decisions and favor words that occur frequently enough to appear in the frequency plots. They can reveal recurring actions and drafting expressions among the explanations that were kept. They offer a limited account of rare constructions and of the mistaken predictions that would matter when improving the classifiers. Token masking describes sensitivity to changes in individual sentences. It supplies no direct evidence that the classifier reconstructs the institutional roles or that those local patterns hold uniformly across legislative years and topics.

### What came after

No subsequent citing work is listed for this study. The paper itself leaves two concrete directions open. One is to test whether using the learned classifier when the dependency rules fail to identify an actor improves coverage while preserving the precision of the grammatical approach. The other is to examine the classifier’s dependence on phrases that perform recognizable legal functions, such as an actor and action joined by a modal or an expression introducing replacement text. The paper supplies a shared evaluation set and examples that make those questions testable. Its reported results concern the individual classifiers and the token-level explanations.

## Cite

Cite as Gijs Jan Brandsma, Jens Blom-Hansen, Christiaan Meijer and Kody Moodley. 2025. Computational Identification of Regulatory Statements in EU Legislation. arXiv:2505.00479.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2505.00479](https://doi.org/10.48550/arxiv.2505.00479) · [arXiv 2505.00479](https://arxiv.org/abs/2505.00479)

```bibtex
@misc{brandsma2025computational,
  title = {{Computational Identification of Regulatory Statements in EU Legislation}},
  author = {Gijs Jan Brandsma, Jens Blom-Hansen, Christiaan Meijer and Kody Moodley},
  year = {2025},
  doi = {10.48550/arxiv.2505.00479},
  eprint = {2505.00479},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2505.00479}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
