Inspiration
After a stroke, many people know exactly what they mean but can't find the word. That's anomia. They can often describe it ("the thing… you cut bread with"), but mid-conversation the silence grows and the listener guesses or moves on. What they're trying to say is often personal (a name, a medicine, a place), so help should be private, fast, and never speak for them without their say.
Private first. Rescued with consent.
What it does
- Describe the word by speaking or typing, optionally adding what kind of word it is and its first letter.
- Wordbridge shows five likely words. Tap one and it says "I mean: knife" out loud. Nothing is spoken until you tap. That's it saves the word to My words, which stays on the device.
- One is close: if a guess is near ("couch" for "sofa"), tap it and Wordbridge asks again on the device only for nearby words. Nothing is sent.
- Every answer says where it ran ("On this device" or "Cloud help") and how long it took.
- Private first: guesses run on the device: Gemini Nano in Chrome, Apple Foundation Models on iPhone/iPad.
- Rescued with consent: if none of the five is right, Not it asks Gemini in the cloud once, only with consent: by default it shows exactly the words that would be sent and asks Send this once or Not now (Cloud help can also be set to Always or Never), with the words they already rejected and with their saved words removed.
- If a description mentions medicine, every guess shows "Check with your doctor or pharmacist".
How we built it (Firebase AI Logic)
- Web: Vite + TypeScript, Firebase JS SDK
firebase/ai13.4.0. Cloud help Ask each time (default) or Never →InferenceMode.ONLY_ON_DEVICE. Always →PREFER_ON_DEVICE. One is close →ONLY_ON_DEVICE. Not it →ONLY_IN_CLOUDwithgemini-3.5-flash-lite. The badge reads the response'sinferenceSource. - iOS / iPadOS: native SwiftUI, Firebase Apple SDK 12.19.3.
FirebaseAI.SystemLanguageModel(Apple Foundation Models) on the device,.hybridModel(primary:secondary:)with Cloud Help on, andgeminiModelfor the "None of these" rescue. The badge readsrawResponse.modelVersion. - Why app-level escalation: the SDK's
PREFER_ON_DEVICEfalls back to the cloud only when the local model is unavailable, not when it is wrong. Wordbridge adds a quality-based, person-triggered rescue on top. - Firebase App Check: reCAPTCHA Enterprise on the web; debug provider for the iOS demo builds (App Attest set up for Release, not yet run). Requests without a valid token are rejected (401).
- Firebase Hosting serves the web app.
- Speech is recognized on the device on both platforms.
- The same prompt and the same routing and privacy rules on both platforms, unit-tested (59 web + 22 iOS tests).
Results (40 synthetic typed descriptions written by the team; one run each)
- iOS Simulator, device then Cloud Help on a miss: 40/40. 30 answered on the device; the cloud rescued all 10 misses. Median 0.68 s.
- Web (Chrome, M4 MacBook Air), same loop: 38/40. 37 answered on the laptop with nothing sent; the cloud rescued 1 of 3. Median 0.86 s.
- Cloud only: 39/40 (web and iOS Simulator). Physical iPad without Apple Intelligence, cloud: 38/40.
- Every run is committed as JSON in the repo, and judges can rerun the benchmark inside the app.
- These are synthetic cues: not clinical accuracy, not tested with people with aphasia, and no iPhone was used.
Privacy
- By default Cloud help asks each time and shows exactly what would be sent; Not now sends nothing. A unit test checks that the text shown is the text sent. Cloud requests use the Gemini API's unpaid tier, and the app says so before sending.
- Before consent (or with Never), no AI request leaves the device; network-boundary tests count the real outgoing requests. On the web, Firebase App Check still loads Google reCAPTCHA Enterprise when the page opens; it carries none of the person's words.
- My words are never sent: they're removed from anything that can reach the cloud. No audio is recorded. No accounts, analytics or server of our own.
Challenges we ran into
- Small on-device models miss sometimes (75–90% top-5 here), so we show five candidates, require a tap, and rescue on rejection.
- The iOS hybrid API needed a pinned SDK (12.19.3).
- We kept the privacy rules identical across two platforms, with tests.
Accomplishments that we're proud of
- One product on two native platforms, through one Firebase SDK family.
- A measured end-to-end hybrid loop.
- Honest "where it ran" badges, and a built-in benchmark anyone can rerun.
What we learned
Hybrid matters most as a rescue for when the local answer is wrong, not only as a fallback for when it's missing, and that rescue should be the person's choice.
What's next for Wordbridge
Load reCAPTCHA only after Cloud help is turned on; a PWA for offline reloads; consent-gated Remote Config; a screen-reader pass; and, before any impact claim, a pilot with people with anomia alongside a speech-language pathologist.
Built during the submission period
The whole project was created during the submission period (first commit 2026-11-28): the web app, the native iOS/iPadOS app, the shared prompt and eval set, both benchmark harnesses and all results. AI coding assistants were used. No other pre-existing code apart from open-source dependencies (Firebase SDKs, Vite).
Built With
- firebase
- gemini
- swift
- swiftui
- typescript
- vite