A mobile-first application that helps laypersons understand Singapore's legal system and navigate it with confidence — from looking up statutes and penal codes to tracking upcoming court dates.
⭐ 1st Runner Up in SMU LIT Hackathon 2023
⚠️ Law4u provides legal information, not legal advice. Always consult a qualified Singapore lawyer for matters requiring professional legal counsel.
Law4u/
├── Chatbot.py # Telegram chatbot (Python)
├── requirements.txt # Python dependencies
├── .env # Environment variable template
├── App.zip # Kotlin-based Android application
└── Hifi.xd # Adobe XD high-fidelity mockups
An AI-powered chatbot that answers questions about the Singapore legal system.
- Powered by OpenAI GPT-4o with live web search
- Responses are grounded in official Singapore government sources:
- Cites specific Acts, section numbers, and penal codes in every response
- Refuses to speculate or answer questions outside Singapore law
- Reminds users to seek professional legal advice where appropriate
A Kotlin-based native Android application.
Court Date Notification System
- Notifies users of upcoming court hearings they are required to attend
- Provides procedural guidance specific to each court attendance type (e.g. Mentions, Pre-Trial Conferences, Trials)
- Surfaces relevant general information to help users prepare
Legal Information Hub
- Browse Singapore statutes and legal topics in plain language
- Searchable legal reference content
High-fidelity mockups built in Adobe XD covering the full user experience of the Android application.
- Python 3.10+
- A Telegram Bot Token from BotFather
- An OpenAI Key
-
Clone the repository
git clone https://github.com/your-username/Law4U.git cd Law4U -
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
Create a
.envfile in the project root:TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here OPENAI_API_KEY=your_openAI_api_key_her
-
Run the bot
python Chatbot.py
| Layer | Technology |
|---|---|
| Chatbot | Python, python-telegram-bot |
| AI / LLM | OpenAI GPT-4o |
| Android App | Kotlin |
| UI Design | Adobe XD |
| Command | Description |
|---|---|
/start |
Introduction and onboarding message |
/help |
Usage guide and example questions |
- Integrate chatbot AI into the Android app natively
- Add support for case status lookup via eLitigation
- Push notifications for court date reminders
- Multilingual support (Mandarin, Malay, Tamil)
- Lawyer directory / referral feature
Law4U is intended for informational purposes only. The information provided does not constitute legal advice and should not be relied upon as such. For any legal matter, please consult a qualified lawyer licensed in Singapore. You may find one through the Law Society of Singapore.
This project is licensed under the MIT License. See LICENSE for details.