The NLP for Legislative Drafting application is a full stack Microsoft Word Add-in that simplifies the process of legislative drafting. It allows users to search for, summarize, and extract legal citations and effective dates from a vast repository of American laws. It accomplishes this through the use of several advanced Natural Language Processing (NLP) models, including the OpenAI API, as well as a specifically trained Hugging Face NLP model. This project is a collaboration between Trinity College Dublin's School of Computer Science and Statistics and Propylon, a Dublin-based company specializing in software solutions for the legal sector. Watch our promo video:
Our team is made up of a mix of second and third-year students studying computer science at Trinity College Dublin. The third-year students were in charge of project management, while second-year students focused on development.
Hazel Hilbert - Team Leader
Ralf Duli - Sprint Master
Muavia Ghazi - Product Owner
Sean Kavanagh - Backend Lead
Tom Gilbride - Frontend Lead
Isioma Anonyai - Social Media Lead
James Bradley - Backend Developer
Jason Qu - Backend Developer
Aaron Groome - NLP Developer
Elizabeth O’Sullivan - NLP Developer
David Rosca - Frontend Developer
Special thanks to our clients from Propylon: Brendan Salmond, Akshay Sayar, Johan du Plessis, and Paul Higgins, along with our demonstrator Nicky Gray for their help and guidance.
Take a look at our Digital Brochure or Project Poster to find out more about our team. You can also follow our social media pages:
To set up your environment variables, copy .env.example to a new file named .env and replace insert_your_key_here with your actual API keys.
cp .env.example .envTo run the application using Docker, please ensure that Docker Desktop (download here) is running on your machine. You can now run the application using docker-compose:
docker-compose up --buildFor macOS and Linux:
python3 -m venv venv
source venv/bin/activateFor Windows:
python -m venv venv
.\venv\bin\activate.ps1With the virtual environment activated, install the project dependencies using:
pip install -r backend/requirements.txtmake sure you have python and pip installed first
To start the Flask application:
cd backend
flask --app app runMake sure that you have installed npm. You can use the following command to do so:
cd frontend_nlp_react
npm installTo start the frontend:
cd frontend_nlp_react
npm start
