Abstract
This study investigates the application of text classification methods to predict the law area and judicial decisions of cases from the French Supreme Court (Cour de Cassation). Using a linear Support Vector Machine (SVM) classifier trained on lexical features from a massive diachronic dataset of over 126,000 cases, we achieved a 96.9% F1 score in predicting case rulings and a 90.3% F1 score in predicting law areas. We also explored temporal classification, achieving a 75.9% F1 score in estimating the time span of a ruling. Our findings suggest that the French judicial system's formulaic nature makes it highly amenable to automated prediction, even when explicit "spoiler" keywords are masked to simulate real-world draft scenarios.
Introduction
While Natural Language Processing (NLP) has advanced significantly in general domains, its application to the legal field—particularly for non-English languages—remains underdeveloped. Legal professionals are currently overwhelmed by an increasing volume of case law, creating a demand for automated tools that can assist in case orientation and outcome prediction.
A primary challenge in legal text classification is "data leakage." Court documents often explicitly state the final ruling within the text, which can lead to artificially high model performance that does not translate to real-world utility for lawyers working on draft cases. This research addresses this by implementing a rigorous masking protocol to remove predictive "spoilers" and evaluating the model's ability to categorize cases by law area, ruling, and time period.
Methodology
The researchers utilized a robust machine learning pipeline centered on a Linear Support Vector Machine (SVM) using the LIBLINEAR implementation. Features were extracted using a "Bag of Words" approach, including unigrams and bigrams, alongside lexical richness metrics like the Type-Token Ratio.
To ensure the model learned legal logic rather than just identifying explicit answers, a masking protocol was applied. All surface forms of labels were removed from the text. Furthermore, ANOVA testing was used to identify and eliminate the top 20 features most highly correlated with the labels (e.g., removing the verb casser because of its direct link to the ruling cassation). Validation was performed using 10-fold stratified cross-validation to account for dataset imbalances.
Dataset Overview
The study utilized a unique diachronic dataset comprising 126,865 unique rulings from the French Supreme Court. The data spans from the 1800s to the present day, with a significant concentration of cases occurring after 1960. Each entry includes metadata such as the law area (e.g., Social, Civil, Commercial), a timestamp, the final ruling, a case description, and cited laws.
Key Results
The SVM models significantly outperformed random baselines across all classification tasks. For law area prediction, the model achieved a 90.3% F1 score across eight classes.
In the task of predicting court rulings, the system achieved a 96.9% F1 score for a 6-class setup and maintained a high 92.7% F1 score when expanded to an 8-class setup. These results highlight the high degree of consistency in the French Supreme Court's decision-making language.
Temporal estimation also proved successful, with a 73.9% F1 score (and up to 75.9% in specific configurations) when placing cases into one of 14 time-span categories. Interestingly, the use of bigrams significantly improved temporal classification, suggesting that the evolution of legal language is best captured in the pairing of words rather than individual vocabulary changes.
Discussion and Conclusion
The high accuracy of these models suggests that the French Supreme Court is notably predictable. This may be due to a judicial tradition that offers judges less "interpretation freedom" compared to systems like the US Supreme Court, resulting in more formulaic and consistent linguistic templates. The most predictive features identified were not specific case facts but rather formulaic legal expressions (e.g., "et pour etre", "occasion de faire"), indicating that the model successfully captured the underlying "legal logic" of the court.
Future work will focus on addressing data imbalances in older cases and moving toward sentence-level analysis to identify the specific "crux" of a case that most heavily influences a judge's decision.
Summary updated