Open Source

How to Contribute a Law

LawGuide is entirely community-driven. Every law in this database was added by a contributor via a GitHub Pull Request. You can do the same in under 5 minutes.

Step 01

Fork the repository

Click "Fork" on the GitHub repository page to create your own copy.

https://github.com/Darkstrike03/LawGuide
Step 02

Create a new branch

Create a branch named after the law you are adding.

git checkout -b add/ipc-section-302
Step 03

Create the law file

Add a new .md file in the correct path under the laws/ directory.

laws/india/ipc/section-302.md
Step 04

Submit a Pull Request

GitHub Actions will automatically validate your file. A maintainer will review and merge it.

Directory Structure

Files must follow this path convention:

laws/
india/
ipc/← Indian Penal Code
section-302.md
constitution/
article-21.md
crpc/
bns/← Bharatiya Nyaya Sanhita

File Format

Every law file must have a YAML frontmatter block with required fields:

---
id: IPC-302
title: "Punishment for Murder"
act: "Indian Penal Code, 1860"
section: "302"
jurisdiction: "india"
category: ["criminal", "homicide"]
punishment: "Death, or imprisonment for life, and fine"
tags: ["murder", "culpable homicide", "ipc"]
last_amended: 1860
status: "active"
short_description: "Prescribes the punishment for the offence of murder as defined under Section 300."
---

## Section 302 — Punishment for Murder

Whoever commits **murder** shall be punished with **death**, or
**imprisonment for life**, and shall also be liable to fine.

### Related Sections

- [Section 299 — Culpable Homicide](/laws/india/ipc/section-299)
- [Section 300 — Murder (definition)](/laws/india/ipc/section-300)

Required Fields

idstringUnique identifier, e.g. IPC-302
titlestringFull name of the section
actstringFull name of the Act or Code
sectionstringSection or article number
jurisdictionstringCountry code, e.g. india
categorystring[]Array of categories: criminal, civil, constitutional, etc.
tagsstring[]Searchable keywords
last_amendednumberYear of last amendment or original enactment

Ready to contribute?

Every section you add helps thousands of people understand their rights.