Carneiro, VíctorGrille-Zallas, AdriánLage-Etchart, Daniel2025-09-122025-09-122025-09-11V. 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.1023372352-7110https://hdl.handle.net/2183/45757Permanent 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[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.engAttribution-NonCommercial 4.0 Internationalhttp://creativecommons.org/licenses/by-nc/4.0/Legal clause analysisLLMSpanish housing lawAutomated legal analysis of rental contract clauses using large language modelsjournal articleopen access10.1016/j.softx.2025.102337