This repository is a work in progress statistical analysis of all reported Singapore High Court (SGHC) and Singapore Court of Appeal (SGCA) judgments.
Below are some preliminary visualisations generated from the dataset using 2020 - 2025 cases (CAA 2 Apr 2025): (In light of my upcoming finals for the semester this section will remain rather superficial for the time being) (Do also note that the visualisations below are not 100% accurate as they were done prior to any form of cleaning and encoding)
This project utilizes a web scraper built with BeautifulSoup
to extract all reported judgments from eLitigation. The scraped data is then processed and analyzed using statistical methods to identify trends, patterns, and other insights related to case law in Singapore.
To run the analysis, ensure you have the following installed:
- Python 3.x
- Required libraries (listed in
requirements.txt
)
- Clone this repository:
git clone https://github.com/kevanwee/codeoflaw.git
- Navigate to the project directory:
cd codeoflaw
- Install dependencies:
pip install -r requirements.txt
Run the main script to scrape data and generate statistical reports:
python elitiscrape.py
python analysis.py
(Note: Will be implementing a neater and more intuitive way to run this in the future!)
Contributions are welcome! Feel free to fork the repo and submit a pull request.
This project is licensed under the MIT License.
Work in progress. More updates coming soon!