chazwi ye Sintu yi nqolobane yezilimi zonke za kwaNtu! (Ndebele, Xhosa, Pedi, Sotho, Tswana, Venda, Swati, Zulu)
# Sintu (Chazwi) β Bantu Language Dictionary
A full-stack dictionary and community platform for Bantu languages (Zulu, Sotho, Xhosa, Tswana,Tsonga, Venda0), featuring word comparison, a community feed, prediction rounds, and subscription payments via PayFast.
## Tech Stack
- **Next.js 15** (App Router) + **TypeScript** + **Tailwind CSS**
- **PostgreSQL** + **Prisma ORM**
- **JWT** cookie-based session auth
- **PayFast** payment integration (sandbox mode)
## Features
- π **Search** β full-text word search across languages
- βοΈ **Compare** β side-by-side word comparison (tracked)
- π° **Feed** β community posts with word mentions
- π **Rankings** β Word of the Day/Week via weighted event scores
- π― **Predictions** β public prediction rounds; submit your bet
- π³ **Pricing** β PayFast subscription (sandbox scaffold)
- π° **Payouts** β private per-user payout ledger
- π **Translate** β MVP cross-language word lookup
- π§ **Admin** β user management panel (ADMIN role)
## Sintu Laws (Encoding)
- **Law #1**: syllable heuristic tokenizer
- **Law #2**: morpheme concept table
- **Law #3**: vowel spectrum scoring (a/e/i/o/u) β rule-based matrix + consonant-skeleton matching
## Rankings Weights
| Event Type | Weight |
|--------------|--------|
| SEARCH | 1 |
| VIEW | 2 |
| COMPARE | 3 |
| POST_MENTION | 4 |
## Setup
```bash
# 1. Copy env template
cp .env.example .env
# Edit .env with your DATABASE_URL, JWT_SECRET, ADMIN_EMAIL, etc.
# 2. Install dependencies
npm install
# 3. Generate Prisma client
npx prisma generate
# 4. Run migrations
npx prisma migrate dev
# 5. Seed starter data (Zulu/Sotho/Xhosa + sample entries)
npx prisma db seed
# 6. Start dev server
npm run dev
```
## Environment Variables
See `.env.example` for the full list. Key variables:
| Variable | Description |
|-----------------------|--------------------------------------------------|
| `DATABASE_URL` β¦