1 The normal run (desktop Chrome with Gemini Nano)
Open the app with the sample loaded
- Step 2 shows each column and the rule that decided it: metadata such as
username,deviceid,_submission_timeis dropped; names, phones and household IDs are dropped; GPS is rounded. - Step 3: press Scan with Gemini Nano on this device. Names and places in the comments are found in the browser; phones by code.
- Step 4: review the masks. Step 5: download the cleaned CSV and the receipt.
- Watch the AI requests sent counter in the header: it stays at 0 through the scan.
2 The refusal (a browser without the built-in model)
Open the app as if Nano were missing
This removes LanguageModel before the page runs, like Firefox, Safari or a phone. In that case the Firebase AI Logic SDK (13.4.0) sends even ONLY_ON_DEVICE calls to the cloud. This app checks first and refuses: the scan button is disabled, the code-only scan still works, and the counter stays at 0.
3 The hybrid call: the summary
Step 6 summarises only the cleaned comments, after consent and a final code check that no phone, email or masked name remains. It uses PREFER_ON_DEVICE: on this laptop Gemini Nano writes it (the counter stays at 0, about a minute); a browser without Nano, or an export too long for the device (over 30,000 characters), uses Gemini in the cloud. The page shows where it ran and why. Raw comments never take this path.
Why this exists
An NGO data officer told us: raw Kobo exports go to partners “more often than what our data protection policy says it should”; cleaning is done by hand; the comments column, half-cleaned GPS and forgotten metadata are what leak; and staff paste comment rows into chatbots to write reports.