Automated legal analysis of rental contract clauses using large language models

This work presents a software tool for the automated legal analysis of rental contract clauses using large language models (LLMs). The system extracts clause-level segments from .docx files and generates legal evaluations and rewritten alternatives using multiple LLMs (GPT-4, GPT-4o, GPT-3.5, DeepSeek). Each clause is assessed for legality, abusiveness, vagueness, risk, and legal gaps according to Spanish housing law. A unified JSON structure stores the outputs for reproducibility and benchmarking. The tool enables comparative analysis across models and provides a foundation for future research on AI-assisted legal drafting and clause evaluation.

Authors

Institutions

Publication Details

Journal
SoftwareX
Published
2025-09-01
DOI
https://doi.org/10.1016/j.softx.2025.102337
Citations
1
Primary Topic
Artificial Intelligence in Law
Type
article
Field-Weighted Citation Impact
8.52
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automated legal analysis of rental contract clauses using large language models

Víctor Carneiro, Adrian Grille-Zallas, Daniel Lage-Etchart
1 citations
SoftwareX
Artificial Intelligence in Law
8.52
article

Automated legal analysis of rental contract clauses using large language models

Víctor Carneiro, Adrian Grille-Zallas, Daniel Lage-Etchart
article en
1 citations

Abstract

This work presents a software tool for the automated legal analysis of rental contract clauses using large language models (LLMs). The system extracts clause-level segments from .docx files and generates legal evaluations and rewritten alternatives using multiple LLMs (GPT-4, GPT-4o, GPT-3.5, DeepSeek). Each clause is assessed for legality, abusiveness, vagueness, risk, and legal gaps according to Spanish housing law. A unified JSON structure stores the outputs for reproducibility and benchmarking. The tool enables comparative analysis across models and provides a foundation for future research on AI-assisted legal drafting and clause evaluation.

SoftwareXVol. 31
Universidade da Coruña (ES)
Openalex Percentile: Top 3%
Artificial Intelligence in Law
8.52
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.