---
title: "Teaching Natural Language Processing in Law School (2024)"
description: "Teaching Natural Language Processing in Law School describes a postgraduate elective that builds technical judgment through legal text projects."
canonical: "https://research.elamur.ai/free/en/papers/braun-2024-teaching-natural-language-processing-law/"
---
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/braun-2024-teaching-natural-language-processing-law/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Teaching Natural Language Processing in Law School

# Teaching Natural Language Processing in Law School

Paper · 2024 · Daniel Braun

**Authors:** Braun, Daniel · **Year:** 2024 · **Venue:** Proceedings of the Sixth Workshop on Teaching NLP · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**0** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4402669938|W6966503542) · [Proceedings of the Sixth Workshop on Teaching NLP](https://aclanthology.org/volumes/2024.teachingnlp-1/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.teachingnlp-1.13/)
- [PDF](https://aclanthology.org/2024.teachingnlp-1.13.pdf)
- [DOI 10.18653/v1/2024.teachingnlp-1.13](https://doi.org/10.18653/v1/2024.teachingnlp-1.13)
- [OpenAlex](https://openalex.org/W4402669938)

Citations: OpenAlex, 2026-10-14.

## Summary

A lawyer deciding whether to use software to review a set of contracts needs to know what the software is looking for, what it might miss, and how to check its output. A lawyer advising the company that makes the software needs some of the same knowledge for a different reason. Daniel Braun’s *Teaching Natural Language Processing in Law School* proposes a way to teach that shared technical foundation. It describes a postgraduate elective in [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/), the computational analysis and production of human language, for law students who may arrive without a background in computing or [artificial intelligence](https://md.research.elamur.ai/free/en/concepts/artificial-intelligence/).

The design starts with the work graduates might do in legal practice, technology development and implementation, or research. From those roles, Braun derives learning outcomes and uses them to choose classroom activities and assessments. This approach, known as constructive alignment, puts practical abilities alongside conceptual knowledge. Students learn to select techniques for legal problems, recognize risks, write instructions for labeling legal documents, and build small applications with existing software. Lectures introduce the technical principles. Tutorials give students a chance to see how those principles affect a task, for instance by trying several ways to analyze the same contract collection or by examining what a court-outcome predictor uses as evidence.

The group project connects those abilities. Each team receives a text collection and a problem to address. It writes labeling guidelines, applies them to the documents, and trains a system to extract information relevant to the problem. The team gets feedback on its instructions while it can still use that feedback in the project. Its final work includes the instructions, the trained system, a short report, and a presentation. An exam and the team project are each worth 50% of the course grade.

Braun reports that a closely similar course ran for three years in a public German university’s Master of Laws program and describes the experience as successful. The paper’s concrete contribution is the design of the elective, down to its tutorial sequence, workload, assessment, and project milestones. It identifies comparisons students can carry out and metrics they can learn to use, but it gives no numerical results from those exercises or measures of what students learned. The detailed account lets readers examine how the course is meant to work, while the reported teaching experience establishes where a version of it was used.

## Deep dive: Teaching Natural Language Processing in Law School

Teaching Natural Language Processing in Law School describes a postgraduate elective that builds technical judgment through legal text projects. · about 30 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

#### Why legal work calls for technical judgment

The paper traces research on artificial intelligence and law back to the 1970s. In Braun’s account, professional adoption took much longer to gather pace. Legal practitioners had reasons to proceed carefully, including strict regulation and personal liability. As acceptance and use grew, technical knowledge became relevant to people working in familiar legal roles as well as to those taking up specialized positions such as legal engineer or legal technologist. A figure from the Future Ready Lawyer Report helps explain the educational concern. Only 24% of lawyers said they understood technologies of the kind the report grouped under artificial intelligence and big data. That figure records respondents’ own views of their understanding. Braun uses it to motivate teaching the essentials.

Language gives the problem a particular shape in law. Contracts and other legal documents are working materials, so software that processes text can enter directly into ordinary legal tasks. The paper mentions drafting contracts, organizing documents, anonymizing text, and supporting legal decisions. These uses call for different judgments. Drafting raises questions about what text the software can produce from available inputs. Anonymization raises questions about what identifying information it can find. A tool used in decision-making raises questions about what its output represents and how it was produced. The paper’s case for [Legal AI](https://md.research.elamur.ai/free/en/topics/legal-ai/) education rests in part on the need to distinguish such tasks before choosing a tool or assessing its output.

There is also work in the other direction. Legal specialists may need to apply law to artificial intelligence technologies, including those used outside legal practice. Braun points to the European Union’s AI Act as part of the reason to expect more demand for lawyers who can advise clients developing, distributing, or using such systems. The competence at issue includes enough understanding of how a system behaves to ask a technically meaningful question about it. In the course design, reviewing the risks of a technique therefore sits alongside making practical use of it.

#### Where the elective fits

Braun describes an uneven educational landscape. The paper says many American law schools had already brought natural language processing into their curricula, while European offerings were relatively uncommon. It connects part of that difference to degree structure. In much of Europe, the initial law degree is an undergraduate program with a tightly regulated curriculum spanning four to five years. The American law school setting discussed in the paper is postgraduate. A subject can be relevant to legal work while still being difficult to place inside a fixed degree plan.

The growing availability of consecutive Master of Laws degrees, including programs centered on legal technology, gives the paper a setting for its proposal. Students have legal training and have chosen further study in an area where technical knowledge matters. The elective is designed for that group. Braun expects that many graduates will use software, participate in its development or introduction, or work with people who build it. The job of the elective is to decide what those graduates should be able to do with technical knowledge, given the time available and the background they bring.

Existing textbooks only partly address this teaching problem. Braun regards standard books on natural language processing as generally more technical than the course requires. Introductions written for readers in the social sciences contain explanations of fundamentals that can fit the elective. The paper finds a gap in their treatment of legal language, legal tasks, and tools specialized for them. That gap has implications for the examples an instructor chooses. A general explanation can introduce what it means to classify text or extract information. A legal exercise must still make clear which categories or facts matter to the people doing the work and how to judge whether the output serves their purpose.

#### What kinds of work guide the design

The paper distinguishes three areas where legal and technical understanding come together. In legal practice, people need to make informed choices about using tools in their work. Familiarity with basic principles can help them ask whether a tool fits a particular task and under what conditions they can rely on its output. In technology development or implementation, Braun gives examples such as product management and implementation consulting. These roles involve helping to shape or introduce a tool, which requires an understanding of what the technology needs from the people defining the problem and what it can reasonably deliver.

Research brings another kind of responsibility. The paper envisages legal data scientists and empirical legal scholars using methods for analyzing text, both within academia and in practice. An interdisciplinary project may ask a legal specialist to prepare a corpus, meaning a collection of texts assembled for study or processing. Through [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/), people mark documents or passages according to explicit criteria. The legal specialist can help decide which distinctions deserve to be recorded and how to recognize them. Those decisions matter to the people who later use the annotated corpus as training data.

These areas explain why the proposal includes data preparation, risk analysis, and small-scale application development. In a research team, a lawyer may have to specify what qualifies as an instance of a category. In an implementation setting, the issue may be whether the chosen technique supplies the kind of output the organization requires. A practitioner using the result may need to interpret an omission or find the basis for a prediction. The skills overlap, but the course’s intended audience has several reasons to acquire them.

### The method, step by step

#### Start with work students should be able to do

Constructive alignment begins with a description of what students should be able to demonstrate at the end of instruction. An intended learning outcome names that performance. The instructor then chooses an activity in which students can develop the ability and an assessment in which they can show it. For this elective, the process starts with the professional roles Braun identifies. If graduates may be asked to help prepare legal data for training, an outcome should involve making usable annotation instructions. The course then needs an occasion to practice applying instructions to real text and an assessment that examines the instructions students produce.

The paper uses Bloom’s taxonomy to describe the level of thinking required by its outcomes. Understanding includes explaining terminology and discussing implications. Application involves putting a technique or tool to work. Analysis and evaluation involve breaking down a problem, considering possible methods, and judging their suitability or risks. Creation involves producing something that works for a purpose, such as a set of labeling guidelines or a small legal application. The taxonomy helps explain why lectures alone would leave important outcomes unaddressed. An explanation of annotation quality gives students a vocabulary for discussing it. Writing instructions that other people can use calls for them to make and defend decisions about the data.

How professional skills guide the elective The steps in order.

Among the outcomes classified as understanding, one concerns the language and fundamental methods of the field. Students should be able to explain core concepts in artificial intelligence, [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/), and natural language processing. Machine learning here concerns techniques that derive useful patterns from data. Another outcome asks students to explain why these technologies matter to law and consider their implications for different legal professions. A student might be able to describe the inputs and outputs of a technique and still need practice explaining who would use it in a legal workflow and what decisions it would support.

The application outcome deals with standard software that can automate parts of legal knowledge work. The examples include no-code services, where users configure an application without writing a full program, and document-generation tools. The next outcome asks students to analyze a problem from practice, identify techniques that could help, and evaluate associated risks. A class discussion about [bias, fairness, and safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/) thus has a practical object. Before students can evaluate the consequences of adopting a tool, they need to establish what it would do and whose decisions or work would be affected.

The creation outcomes concern data and applications. Students are expected to produce instructions for annotating legal datasets and apply those instructions to create a labeled corpus. They should also be able to assemble a small legal application for a specified problem using existing tools and libraries. Both outcomes depend on scoping. Instructions broad enough to cover all conceivable uses of a set of rulings could give annotators little guidance on the specific information they need to mark. An application that performs a modest, well-defined operation gives students something they can inspect and explain. The project joins these outcomes by making the students’ data decisions relevant to what they eventually build.

#### Set the workload and choose what students build themselves

The course is planned for a semester of ∼15 weeks, with a workload of 140 hours and a value of 5 points under the European Credit Transfer and Accumulation System. The paper allocates 56 contact hours. Lectures account for 30 hours, with 2 hours per week, and tutorials account for 26 hours. The course sets aside 84 hours for independent study and project work. That last allocation makes room for the reading, group decisions, annotation, and revisions that a scheduled demonstration can introduce but rarely accommodate in full.

Lectures mainly develop concepts, including how techniques relate to tasks and what can go wrong. Tutorials use software to make those concepts observable. Braun keeps the mathematical detail and optimization procedures of machine learning outside the lecture scope. In tutorials that require a program, a Jupyter notebook can provide the existing code and let students configure parts of it. A notebook combines editable material and the output it produces in a document students can work through. The contribution expected of them depends on the exercise, such as trying an input representation, setting up a processing sequence, or interpreting the result of a run. Some materials, especially for practical work, are available in the Teaching-NLP-in-Law-School GitHub repository named by the paper.

The article presents a pedagogical procedure. It gives the names of measures students encounter, but it specifies no equations for a training algorithm and no mathematical derivations. The technical topics matter here through the decisions they let a learner make. A student comparing input representations should know what each version of the text supplies to the program. A student evaluating an extractor should know which errors count towards a given measure. The notebooks and prepared software give students a chance to investigate those questions with working examples.

#### Begin with automation, then define what counts as data

The introductory lecture covers the history and definition of artificial intelligence and establishes the basics of learning from data. Its examples include decision trees, which branch through a series of tests, and nearest-neighbor methods, which use nearby examples to inform a prediction. The plan also lists linear regression, which relates an outcome to inputs through a linear relationship, and clustering, which groups examples according to a measure of closeness. The accompanying discussion distinguishes correlation from causality. A pattern that helps predict an outcome gives students something to investigate about the data. The existence of that pattern alone cannot establish what produced the outcome.

The first practical work has students assemble a simple legal expert system using a no-code platform. An expert system of this kind lets users express a procedure through rules and decisions. The course names Bryter, Mioto, and Open Decision as examples of platforms. This activity gives students an early experience of defining what software should do in a legal situation. They can connect the actions of a configured system to explicit choices they made about the task. The platform returns later when the course reaches document generation, giving students another legal use for software they have already encountered.

The annotation unit moves the class from setting explicit rules for a tool to setting explicit rules for the people preparing training material. A basic decision is what part of the text receives a label. A label can describe a whole document, a section, a sentence, a word, or a sequence. Another decision concerns which labels can coexist. A binary task asks annotators to choose between alternatives. A multiclass task presents a wider set of categories, with a choice among them. A multilabel task allows several labels to apply to the same item. The course treats these decisions as part of defining the task because they determine what a system trained on the data can be asked to recover.

The practical exercise uses a small corpus of court decisions. Students draft guidelines and try annotating with a tool such as Doccano. They encounter issues of annotation quality and disagreement. An instruction may sound clear while everyone is discussing a straightforward example. Applying it across the decisions can reveal a passage whose boundaries are hard to agree on, or a case where a relevant legal distinction does not fit the existing categories. The course includes disagreement as a topic because a usable set of instructions has to survive these decisions. The later project gives teams a setting in which to revise their own guidelines after others read them.

#### Prepare texts and extract information from them

After annotation, the course introduces natural language processing tasks and the challenges of working with text. A document can contain useful content alongside material a particular task can dispense with. Sentences and words also have to be identified before later steps can operate on them. A processing pipeline is a sequence in which an earlier operation prepares material for a later one. The course introduces this idea through operations such as recovering content from documents, deciding where sentences end, and using lexica, or structured collections of words and associated information.

Two normalization techniques in the plan give students a concrete choice about what later stages will receive. [Stemming](https://md.research.elamur.ai/free/en/concepts/stemming/) reduces forms to a common stem through rules that can remove parts of words. [Lemmatization](https://md.research.elamur.ai/free/en/concepts/lemmatization/) aims to relate an inflected form to its dictionary form. Treating related forms together can help later processing recognize them as instances of the same word. Keeping the original form can matter when the wording is what another operation needs to inspect. In the practical session, students configure a preprocessing pipeline for privacy policies in a supplied notebook. The paper assigns the privacy policies to that activity and the court decisions to the earlier annotation activity.

The next unit takes up [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/), which turns relevant parts of a document into information a person or program can use separately. The lecture introduces [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), the identification of passages that refer to entities belonging to specified types. It also covers regular expressions, which describe patterns in text, and relation extraction, which looks for links between the entities or pieces of information identified. The course situates these techniques alongside citation networks, which record connections made through citations, and argument mining, which seeks to identify components or structure in argumentation.

In the corresponding tutorial, students do a regular expression exercise and implement extraction with a provided notebook. They return to the court decisions that they previously annotated. This gives their early work a technical consequence. The guidelines supplied the criteria used to mark the text. The extraction program can now be examined in relation to those criteria. If a program extracts a passage that has no matching label, the class can ask whether the program exceeded the intended scope, whether the labeling was incomplete, or whether the two use incompatible boundaries. The exercise thus connects a technical discrepancy to the quality and conventions of the underlying data.

The lecture names precision, recall, and F1 as [evaluation](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/) measures. Precision concerns the share of retrieved items that are correct under the evaluation criteria. Recall concerns the share of the relevant items that the system recovered. F1 combines precision and recall into a single measure that reflects weakness in either. These measures give students a way to tell different extraction problems apart. A system can return a few well-targeted items and leave much of the desired information untouched. It can also find much of the information while producing extra material that someone has to check. The project report can describe performance in terms that relate such errors to the assigned problem.

#### Compare tools, representations, and similarity measures

The next portion of the course deals with what can be inferred from longer pieces of text. [Text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/) assigns a text to categories defined for the task. [Topic modeling](https://md.research.elamur.ai/free/en/concepts/topic-modeling/) looks for recurring themes from patterns in a collection. The lecture connects these topics to contract analysis and to [natural language understanding](https://md.research.elamur.ai/free/en/concepts/natural-language-understanding/) services. The tutorial uses a common contract corpus so that students can compare what different approaches return when analyzing the same material.

The course gives examples of the three approaches. Students can use a specialized contract analysis tool such as Summize, a cloud service such as Azure AI, and ChatGPT. The shared corpus provides an anchor for reading the outputs. A contract analysis product may present results in categories oriented towards its intended work. A general service may present the output of a more broadly defined text task. A conversational interface may present a prose response. For students, the comparison calls for establishing which parts of those outputs answer the legal question and whether the answers can be traced to the contract material. The paper leaves the tutorial as a comparison for the class to undertake.

The following lectures and tutorials examine how words and documents are represented numerically. A vector is an ordered collection of numerical values used to describe an item. The course presents the distributional hypothesis, which connects aspects of meaning to the contexts in which words occur. It includes [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), numerical representations that can reflect such contextual patterns. Neural networks and [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) also enter the lecture. Fine-tuning means adapting an already trained system further for a task or use. The lecture locates these concepts in a larger account of how systems work with language.

The exercise compares extraction performance under different input representations. A bag of words records which words a text contains or how frequently they occur, with word order left aside. [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/) weights terms using their frequency within a text and their prevalence across the collection. Word embeddings represent words by vectors that can express relationships learned from their use. The supplied notebook lets students try these representations in the context of an extraction task. The class also visualizes embeddings. That activity asks students to interpret the arrangement of words in a representation, while the extraction exercise asks whether the encoded information helps with a specified task.

The course then turns directly to [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/) and related ways of measuring resemblance between texts. The Jaccard coefficient looks at overlap relative to the set of items found across the objects being compared. Cosine similarity compares the direction of their vectors. Word Mover’s Distance uses distances between word representations to evaluate how far the words in one text would have to move to correspond to words in another. The lecture includes document vectors and mentions detecting AI-generated text. The tutorial returns to the court decisions and asks students to compare similarity measures on this common corpus.

A similarity score is intelligible only in relation to what its inputs retain. Shared terms can make rulings appear similar under an overlap measure. A comparison using word representations can also give weight to words that differ in form while occupying related positions in the representation. For a classroom comparison, judgments about the nature of the resemblance can be as informative as the order of the scores. A student who knows why a measure treats two decisions as close can then ask whether that sense of closeness is relevant to the legal use under discussion.

#### Make generated text and documents open to inspection

The [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/) unit examines several sources from which software might produce wording, including structured data, images, and other text. The lecture discusses templates, explicit generation rules, and methods that use probabilistic choices. It also distinguishes forms of [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/). Extractive approaches select parts of an input text for inclusion. Abstractive approaches produce a condensed account in new wording. Both give students a reason to compare an output with its source, although the comparison involves different questions about selection and reformulation.

The lecture names [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/) and ROUGE among the evaluation measures. At the level needed to understand the plan, they give the class ways to discuss overlap between generated text and reference text. The tutorial moves from how such measures work to concrete generation activities. It uses SimpleNLG for rule-based generation and GPT-2 for a different generation exercise. Students also examine hallucination, where an output presents information without support from the material the task supplies. Fluent output can therefore prompt a separate check of whether the text is grounded in the right source.

The document processing and automation unit brings generation into a legal workflow. Its lecture covers electronic discovery, document management, process automation, and tools for producing legal documents. Electronic discovery concerns finding and working with electronic material relevant to legal proceedings. For document generation, students use Word, the no-code platform introduced earlier, and a specialized tool. By giving the tools the same task, we can see how much of the procedure users must specify for each tool and how the inputs shape the document it produces. The activity treats generation as something that can sit inside a broader process with decisions before and after the text is produced.

#### Examine what legal predictions and explanations mean

The case-outcome unit asks students to consider prediction as a descriptive task. A feature is an input variable a system can use to make a prediction. Braun calls attention to features outside the substantive legal issues, such as time. A pattern in such a feature could help a system anticipate what a court will decide. Whether a court ought to decide that way is a question that calls for a legal judgment. The lecture uses that distinction when discussing the state of case-outcome prediction research and the risk of bias. In the tutorial, students use another prepared notebook to train a simple predictor for legal outcomes.

A subsequent unit introduces [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) and explainability. One question is when an explanation becomes available. An approach can be designed so that aspects of its reasoning are inspectable from the outset, or an explanation can be constructed after the system has produced a result. Another question is how much behavior the explanation covers. A local explanation concerns a particular output, whereas a global explanation concerns behavior across inputs. An explanation method can also depend on the internal design of a particular system or be applicable to multiple kinds of systems.

The lecture discusses explanations based on examples, adversarial attacks that probe behavior under deliberately chosen inputs, and the need to scrutinize explanations generated in natural language. The tutorial introduces LIME as a library for generating explanations. The curricular point of using it is to give students an explanation they can inspect and ask questions about. In a legal task, a student examining an individual prediction can ask which parts of the input appear to have mattered and how far that explanation reaches. A plausible-sounding account and a well-defined scope answer different questions about the output.

#### Carry a legal problem through to a project submission

Braun reserves Weeks 12 to 14 for guest lectures from practitioners. The schedule calls for perspectives from an established organization, a startup, and a law firm. The paper gives legal operations as an example of a role in an established organization and includes a startup software session. Guest lectures are intended to show where the abilities taught during the semester can come into use. The schedule includes an opportunity to get project support before final submission. Students therefore encounter professional settings while they are still making decisions about their own work.

Students complete the project in pairs or groups of three. Each team receives a corpus and an account of a problem to solve. The first decision is what information in the corpus could support that problem. The team turns that decision into written annotation instructions by specifying labels and how to apply them. It hands in its guidelines in week 4 and participates in a feedback process that includes reading and commenting on the work of other teams. In that process, students can discover whether a proposed distinction makes sense to a reader outside their group while there is still time to clarify it.

The team uses its guidelines to annotate the corpus and then trains a system to extract the relevant information. The paper specifies this order because the annotations describe what the system is expected to find. The data procedure belongs to each project. The corpus and problem are assigned, the team defines the labeling guidance, and its annotation creates the training material. Braun leaves the particular collection, label inventory, and training choices open. The schedule calls for the trained system and notebook as a deliverable. Students also write a report of max. 4 pages describing the work and present their results to peers.

The arrangement gives feedback and grading distinct functions. Draft guidelines receive feedback while they can still inform later work. The completed project receives a grade based on the guidelines, trained system, report, and presentation. The end-of-course exam can be written or oral and contributes separately to the grade. Taken alongside the project, it gives the course another occasion to assess the student’s grasp of the concepts behind the work. While the project follows a particular legal problem through data preparation and extraction, the exam can address the broader range of ideas introduced during the semester.

### Experiments and results

#### What the teaching experience establishes

Braun reports that a course closely resembling the proposed elective was taught for three years as part of a Master of Laws program at a public German university. The abstract characterizes the experience as successful. That description accompanies a detailed plan for organizing teaching. The paper supplies the setting and duration of use, while leaving the criteria behind the judgment of success unspecified. A reader can follow the activities the instructor planned and see how students would be assessed, but cannot attach a quantitative learning outcome to the report of repeated use.

For this paper, the distinction between materials used in class and data collected to evaluate the course matters. The court decisions, privacy policies, and contracts are teaching materials. They give students concrete texts on which to practice annotation, preprocessing, extraction, and analysis. The paper identifies the kinds of documents and describes a small court-decision corpus. It leaves the source and composition of the collections, their counts, and any training and test splits unspecified. Project teams also receive corpora tied to their assigned problems. Those corpora support the teams’ own work, and the article gives no pool of project observations on which to compare their results.

The legal-outcome tutorial belongs to the same category. Its notebook gives students a setting in which to train a predictor and discuss what the output means. The paper does not identify a particular case dataset for that exercise or report a prediction score. A corpus reused across activities can give students a familiar basis for comparison in class. That reuse alone provides no measure of how well the activity teaches the concept or how well a technique would work on other cases.

#### What the class is equipped to measure

The course covers metrics for several kinds of work. The extraction unit teaches students to judge the correctness of items a system retrieves and how fully the system retrieves the relevant material, using precision, recall, and F1. The generation unit takes up measures such as BLEU and ROUGE alongside an exercise on unsupported generated content. Similarity measures have another role. They determine how an exercise assigns resemblance to texts and let students examine how that judgment changes with the measure. The paper names these metrics as curricular material. It gives no extraction scores, generation scores, or values from the comparison of similarity measures.

The schedule gives the class comparison settings. Contract analysis brings together a domain-specific tool, a general-purpose cloud service, and ChatGPT on a shared collection. The representation exercise varies the numerical form of the input used for extraction. The similarity exercise applies different measures to court decisions. These are relevant settings for asking which aspect of a method affects what students see. Braun provides neither a designated baseline for the studies nor outcomes against which to rank the alternatives. The settings tell readers which contrasts students are expected to investigate.

At the educational level, an end-of-course exam and a graded project are the course’s instruments for judging students’ work. The paper gives no distribution of marks, record of prior knowledge measured on entry, or scores from an alternative course. Even a full set of grades would need interpretation in light of what each task measures. A strong group report, for example, can show what a team has documented and communicated. The source of each individual’s technical understanding is a separate question. The plan specifies a role for an exam and a project, while the paper leaves their observed relationship unreported.

#### How the assessments are weighted

The exam and project each contribute 50% of the final grade. The project grade, in turn, gives 30% each to the annotation guidelines, trained extraction system, and report, with 10% assigned to the presentation. The chart represents that planned allocation. The metric is share of the project grade, and the stars mark the components with the joint highest weight.

Planned grading weights for components of the legal text project The guidelines, trained system, and report carry equal weight, and the presentation carries a smaller share.

**The numbers**

| System or setting | project grade % |
| --- | --- |
| Annotation guidelines (this paper) | 30% |
| Trained extraction system | 30% |
| Project report | 30% |
| Presentation | 10% |

The equal weights assigned to the guidelines, extraction system, and report make a particular choice visible. The quality of the written rules used to create the data counts in its own right. So does the team’s ability to document its work. A team with an extraction system that performs well on its project corpus still has to explain what it marked and how the resulting work addresses the problem. A team with a clear account of the problem still has to produce a working system. The presentation gives students a further occasion to communicate the results to an audience of peers, with a smaller contribution to the project grade.

Some evidence about a course can come from whether it was possible to run it repeatedly in the intended setting. Other evidence comes from observing what students can do. Braun’s report of the German program gives the former kind of account, alongside an assessment design for the latter. The paper does not say how many students took part, whether instructors encountered particular difficulties, or whether performances changed over successive offerings. The weightings remain the numerical description of how the course is designed to score work, while the claim about the teaching experience remains qualitative.

### What the ablations show

The paper reports no ablations or controlled studies of the teaching design, but it sets out comparative classroom exercises on contract analysis tools, text representations, and similarity measures.

The contract exercise asks students to apply different kinds of tools to a common set of documents. Holding the corpus in common helps the class trace differences back to the approaches being tried. Many aspects of those approaches can still vary at once. They can represent a request in different ways, return different categories of information, or present a result at different levels of detail. The exercise gives students a basis for noticing those differences and asking which outputs are fit for the legal problem. A tool ranking would require the paper to state a common criterion and report how each tool fared on it. The paper focuses on the comparison students are to make as part of the course.

The representation exercise has a narrower contrast. Students use a notebook to examine extraction performance with bag-of-words inputs, TF-IDF inputs, and word embeddings. The activity directs attention to the representation supplied to the extractor. Word counts make some kinds of evidence available, relative term weights change the emphasis placed on words, and embeddings encode relationships derived from contexts of use. The classroom plan gives a reason to inspect how those differences interact with a legal task. It does not specify enough about the training and evaluation conditions to establish that the representation is the only thing that varies, and it supplies no scores from which to infer a relative advantage.

The similarity exercise offers a different kind of analysis. A comparison of court decisions can show whether measures agree about which texts are close. Students can inspect cases of agreement or divergence in light of how a measure uses overlap, vector direction, or relationships between words. An observed divergence would make sense only once students establish what resemblance they care about. The classroom task calls for that interpretation. The course description gives no legal relevance judgments or resulting rankings for the reader to inspect.

Braun also builds critical comparison into lectures without casting those discussions as experiments. In outcome prediction, students consider the gap between an anticipated court decision and a conclusion about what the law supports. In the explanation unit, the classification of methods gives them several questions to ask about an explanation’s scope and relationship to the underlying computation. In generation, students can inspect the content of a fluent output for unsupported assertions. These activities share a structure. A system produces an output, and a person has to decide which conclusions the output warrants. Each activity makes that judgment concrete in a different task.

The feedback process offers another form of classroom analysis. Students read annotation instructions written by their peers and have to identify where applying them may require further guidance. This can reveal a practical difference between terminology that feels natural within the team and terminology that a new annotator can use consistently. The paper gives no before-and-after assessment of the guidelines. It places the review early enough for students to have an opportunity to revise them before completing the extraction project.

The design’s internal justification is the fit between activities and intended outcomes. A lecture on extraction measures supports the ability to explain them. Working with annotated decisions makes students use the ideas on actual text. Producing project guidelines asks them to apply what they learned about categories and disagreements to a new problem. That chain is an argument for why the components belong together. It leaves the contribution of particular elements, such as the notebook scaffolding or peer feedback, open to educational evaluation.

### Limitations

#### Limits the paper sets for the course

Braun defines the audience as postgraduate law students choosing an elective concerned with legal technology. The design assumes that relevant prior study in artificial intelligence and computing may be absent. This shapes the depth of the course. Lectures emphasize concepts and tasks, with relatively little mathematics or attention to optimization. Tutorials using prepared notebooks let students configure working code. The outcome the paper seeks is enough technical understanding to make choices, participate in projects, and work with standard software in legal contexts. Full software development and the technical depth of a computing degree fall outside the stated scope.

That choice affects what a completed task demonstrates. A student can use a notebook to follow the relationship between a configured input and an extraction output. The same task may reveal little about the student’s ability to implement the underlying technique or diagnose failures deep in a program. The paper’s learning outcomes put the emphasis on understanding the technical process and using it to address a bounded problem. Someone adapting the design for students who will be expected to build systems with less support would have a different set of outcomes to align with the tutorials and assessment.

The paper explicitly identifies a shortage of suitable reading material. General technical textbooks can be demanding for the intended audience. Textbooks aimed at social-science readers can cover relevant foundations while leaving legal language and specialized tasks untreated. The syllabus offers practical work that addresses parts of that gap, and the repository supplies some teaching materials. Braun nevertheless presents the design as a basis for developing comparable courses, with instructors still responsible for choosing suitable readings, legal corpora, and examples.

#### Limits visible in the reported experience

The paper’s account of successful use comes from a closely similar course in a particular program. It does not enumerate differences between the proposal and what was taught in each offering. That limits the precision with which readers can attribute the experience to features of the published design. The text also gives no enrollment, measure of prior knowledge, exam results, or project scores. It provides a basis for saying that a version of the elective was used in the intended kind of setting. The level of proficiency students reached and how much of it they gained through the course remain undetermined.

There is no comparison with students taught through another design or with students who took no such elective. Even with a reported gain, interpreting it would require knowing how students’ skills were assessed and which students entered the course. An elective for people pursuing legal technology has a particular enrollment context. It is unclear how the same plan would work in a compulsory undergraduate course or in a program with a different amount of contact time, technical support, or familiarity with legal texts. The paper’s discussion of American and European curricula motivates a place for the elective. It does not evaluate that question of transfer.

The project grade also combines shared work and several types of performance. The exam contributes a separate measure, and its format may be oral or written. Braun gives no exam items, marking criteria for the detailed qualities of each deliverable, or procedure for attributing parts of a team project to individual students. The annotation guidelines, extraction system, report, and presentation help assess different work, but the listed weights cannot establish how consistently instructors would grade comparable submissions. The assessment discussion also uses *formative* inconsistently for grading at the end of the course and for feedback during learning. The concrete schedule identifies which work receives early feedback and which contributes to the final grade. Those details give a clearer account of the assessment than the terminology does.

For the practical work, the paper describes tasks and identifies example software, with limited detail about corpora and evaluation procedures. How cases are selected, how disagreements are resolved, and how annotated documents are divided for training and evaluation would affect what a particular project’s extraction results mean. The paper teaches students to pay attention to annotation disagreement and evaluation measures, but it provides no project-level observations from which a reader could estimate the size of either issue. It likewise leaves open how well work on the assigned corpora prepares students for a different collection or a new legal domain.

The design includes professional judgment about bias, explainability, accountability, and the difference between prediction and legal evaluation. These topics define what Braun considers relevant competence. The paper does not follow graduates into practice or examine their decisions as practitioners, consultants, or researchers. A team’s ability to complete the semester project and a graduate’s ability to judge legal technology in a workplace would require evidence gathered at different times and under different conditions. The paper supplies the rationale for connecting those abilities through teaching.

### What came after

No later citing work is identified that documents an extension, replication, or evaluation of this elective. Braun’s account ends with a design that other instructors can examine in detail, from the intended abilities and course schedule to the annotation project and its grading. Whether other programs adopted the same sequence, changed the amount of technical work, or gathered evidence on what students learned remains open.

## Cite

Cite as Daniel Braun. 2024. Teaching Natural Language Processing in Law School. Proceedings of the Sixth Workshop on Teaching NLP.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{daniel2024teaching,
  title = {{Teaching Natural Language Processing in Law School}},
  author = {Daniel Braun},
  booktitle = {Proceedings of the Sixth Workshop on Teaching NLP},
  year = {2024},
  doi = {10.18653/v1/2024.teachingnlp-1.13},
  url = {https://doi.org/10.18653/v1/2024.teachingnlp-1.13}
}
```

> 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)
