LLM Driven Legal Text Analytics: A Case Study For Food Safety Violation Cases

Suyog Joshi, Soumyajit Basu, Lipika Dey, Partha Pratim Das


Abstract
Despite comprehensive food safety regulations worldwide, violations continue to pose significant public health challenges. This paper presents an LLM-driven pipeline for analyzing legal texts to identify structural and procedural gaps in food safety enforcement. We develop an end-to-end system that leverages Large Language Models to extract structured entities from legal judgments, construct statute-and-provision-level knowledge graphs, and perform semantic clustering of cases. Applying our approach to 782 Indian food safety violation cases filed between 2022-2024, we uncover critical insights: 96% of cases were filed by individuals and organizations against state authorities, with 60% resulting in decisions favoring appellants. Through automated clustering and analysis, we identify major procedural lapses including unclear jurisdictional boundaries between enforcement agencies, insufficient evidence collection, and ambiguous penalty guidelines. Our findings reveal concrete weaknesses in current enforcement practices and demonstrate the practical value of LLMs for legal analysis at scale.
Anthology ID:
2025.justnlp-main.6
Volume:
Proceedings of the 1st Workshop on NLP for Empowering Justice (JUST-NLP 2025)
Month:
December
Year:
2025
Address:
Mumbai, India
Editors:
Ashutosh Modi, Saptarshi Ghosh, Asif Ekbal, Pawan Goyal, Sarika Jain, Abhinav Joshi, Shivani Mishra, Debtanu Datta, Shounak Paul, Kshetrimayum Boynao Singh, Sandeep Kumar
Venues:
JUSTNLP | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
41–52
Language:
URL:
https://preview.aclanthology.org/ingest-ijcnlp-aacl/2025.justnlp-main.6/
DOI:
Bibkey:
Cite (ACL):
Suyog Joshi, Soumyajit Basu, Lipika Dey, and Partha Pratim Das. 2025. LLM Driven Legal Text Analytics: A Case Study For Food Safety Violation Cases. In Proceedings of the 1st Workshop on NLP for Empowering Justice (JUST-NLP 2025), pages 41–52, Mumbai, India. Association for Computational Linguistics.
Cite (Informal):
LLM Driven Legal Text Analytics: A Case Study For Food Safety Violation Cases (Joshi et al., JUSTNLP 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-ijcnlp-aacl/2025.justnlp-main.6.pdf