I’ve been lately trying to build something similar, where did you acquire case law database to build this tool on top?
Case law: Google Scholar + CourtListener's bulk data (great coverage of federal and state appellate decisions).
Statutes & regulations: Currently using Justia for state statutes, but working on scraping directly from state legislature sites. U.S. Code from the Office of Law Revision Counsel's XML releases, and eCFR's APIs for federal regulations.