Logo Lanfrica

fozagtx/termscan-app

Domaine:

natural language processingsocioeconomic

Type de record:

softwaretools
Créateur:
foz
Hôte:
Photograph a Ghanaian contract. Gemma 4 reads it on your phone and flags clauses that are unfair, one-sided, or against the law. Built for Build with Gemma: Ghana. # TermScan > Know what you are signing. Offline. **TermScan photographs a Ghanaian contract, reads it with Gemma 4 running on the phone, and explains every clause in plain language: what it means, what it will cost you, whether the law is already on your side, and what to say to push back.** For tenants, job seekers and borrowers in Ghana. No account, no API key, no internet during analysis. **Event:** Build with Gemma: Ghana (Kaggle × Google DeepMind) · Main Track --- ## Why In Accra a landlord asks for two years' rent before he hands you the key. The Rent Act says six months, and demanding more is a criminal offence. Most tenants never find that out, because the rule lives in a statute nobody gives them, and the demand arrives verbally at a gate with three other people waiting for the same room. The same shape repeats elsewhere. A job offer that "waives the Labour Act". A loan quoting 8% per week that never once states what that costs over a year. The harm is rarely hidden in complicated law. It is hidden in the gap between what the paper says and what the person holding it can read. --- ## What is here | | | |---|---| | **`android/`** | The app. CameraX, then `gemma-4-E2B-it.litertlm` on-device via LiteRT-LM, then a clause report and a PDF. No API key and no cloud inference client. | | **`notebook/`** | `termscan.ipynb`, the clonable Kaggle notebook. The same prompt and the same reference pack, against a hosted or locally loaded Gemma 4. | | **`knowledge/`** | `ghana-law.json`, the verified legal reference pack and the named falsehoods the prompt blocks. Drives the notebook; the app carries the same pack as `GhanaLaw.kt`. | | **`scripts/`** | `build_notebook.py` generates the notebook from the pack. `check_pack_parity.py` proves the two copies of the pack have not drifted. `test_prompt.py` runs the real prompt against a local Gemma 4 and asserts the citation behaviour. `verify.sh` runs everything checkable without a phone. | --- ## How Gemma 4 is use …