Automated legal analysis of rental contract clauses using large language models

UDC.coleccionInvestigación
UDC.departamentoCiencias da Computación e Tecnoloxías da Información
UDC.grupoInvTelemática
UDC.institutoCentroCITIC - Centro de Investigación de Tecnoloxías da Información e da Comunicación
UDC.issue102337
UDC.journalTitleSoftwareX
UDC.volume31
dc.contributor.authorCarneiro, Víctor
dc.contributor.authorGrille-Zallas, Adrián
dc.contributor.authorLage-Etchart, Daniel
dc.date.accessioned2025-09-12T13:32:28Z
dc.date.available2025-09-12T13:32:28Z
dc.date.issued2025-09-11
dc.descriptionPermanent link to code/repository used for this code version: https://github.com/ElsevierSoftwareX/SOFTX-D-25-00431 Permanent link to Reproducible Capsule: https://github.com/cyberLLM-Net/SLC-GPT/tree/main/library
dc.description.abstract[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.
dc.description.sponsorshipThis work was carried out at CITIC, within the framework of the project PID2023-150794OB-I00, funded by the Ministry of Science, Innovation and Universities (MICIU), and co-funded by the European Regional Development Fund (ERDF), European Union. CITIC, accredited as a center of excellence within the Galician University System and a member of the CIGUS Network, also receives support from the Department of Education, Science, Universities, and Vocational Training of the Xunta de Galicia, co-financed by the EU through the ERDF Galicia 2021–2027 programme (Ref. ED431G 2023/01).
dc.description.sponsorshipXunta de Galicia; ED431G 2023/01
dc.identifier.citationV. Carneiro-Diaz, A. Grille-Zallas, and D. Lage-Etchart, "Automated legal analysis of rental contract clauses using large language models", SoftwareX, Vol. 31, Sept. 2025, 102337, https://doi.org/10.1016/j.softx.2025.102337
dc.identifier.doi10.1016/j.softx.2025.102337
dc.identifier.issn2352-7110
dc.identifier.urihttps://hdl.handle.net/2183/45757
dc.language.isoeng
dc.publisherElsevier
dc.relation.projectIDinfo:eu-repo/grantAgreement/AEI/Plan Estatal de Investigación Científica y Técnica y de Innovación 2021-2023/PID2023-150794OB-I00/ES/MEJORANDO LA DETECCION DE CIBER AMENAZAS USANDO MODELOS DE LENGUAJE DE GRAN TAMAÑO PARA PROTOCOLOS DE RED
dc.relation.urihttps://doi.org/10.1016/j.softx.2025.102337
dc.rightsAttribution-NonCommercial 4.0 Internationalen
dc.rights.accessRightsopen access
dc.rights.urihttp://creativecommons.org/licenses/by-nc/4.0/
dc.subjectLegal clause analysis
dc.subjectLLM
dc.subjectSpanish housing law
dc.titleAutomated legal analysis of rental contract clauses using large language models
dc.typejournal article
dc.type.hasVersionVoR
dspace.entity.typePublication
relation.isAuthorOfPublication652c136c-eea5-4a78-947c-538b1c99f81b
relation.isAuthorOfPublication.latestForDiscovery652c136c-eea5-4a78-947c-538b1c99f81b

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
CarneiroDiaz_Victor_2025_Automated_legal_analysis_of_rental_contract_clauses_using_large_language_models.pdf
Size:
1.13 MB
Format:
Adobe Portable Document Format