Inspiration
Language apps ask you to set aside time, and most of us don't. But we already type all day, in Messages, WhatsApp, Slack and Notes. So we asked: what if the sentence you're writing right now became the lesson? A word you meant to say tonight sticks better than "the apple is red."
What it does
Frizi is a full iPhone keyboard. It works in any app, with normal suggestions and autocorrect. Finish a sentence, and Frizi, our little blue mascot, pops up at the end of the bar. Tap Frizi, and the keyboard turns into a lesson built from your sentence, in about 10 seconds:
- Teach: "You typed: I'll be there tomorrow" → tomorrow = mañana, with its sound and an English-letter reading (내일 · naeil).
- Ask: pick what the word means in your own line.
- Ask again: fill the gap with the right word.
A wrong answer comes back once at the end. A lesson never runs past 4 cards, so you're back in your chat fast. Frizi never quizzes you on a word it hasn't taught you.
The app turns your words into a journey: a winding map of stops with stars. It starts with the script (Hangul, hiragana, pinyin). Next comes a Trip unit with what a traveller needs: the ATM, the station, the hotel and food (お寿司 in Japanese, 라면 in Korean). Last comes a unit built from words you saved.
Frizi texts you, a bit clingy, always useful. Each practice reminder teaches a word ("みず = water"). Some carry a quiz with answer buttons right on the lock screen. If you stay away, the texts escalate gently over a week, then stop.
Words come back after 1, 3, 7 and 14 days. Each word moves through five stages: new → seen → recognized → recalled → mastered.
How we built it
- SwiftUI app, plus a custom keyboard extension, sharing data through an App Group.
- Hybrid AI with Firebase AI Logic. On iPhones with Apple Intelligence, lessons come from Apple's on-device model. Other phones use Gemini through Firebase, but only after you tap Frizi and agree once. Typing alone sends nothing.
- One structured call per lesson. It returns the translation, key words, meanings and readings as one JSON object. An output guard checks tense and length before anything shows on screen.
- A Tutor agent with tools (
getDeck,getRecentMistakes,scheduleReview,setDailyPlan,scheduleNudges, …). It plans the daily quiz, explains mistakes and writes Frizi's 10-text reminder ladder. It must teach a word before it quizzes it, and a filter swaps out any line that breaks the rules. - Firebase: AI Logic, App Check (DeviceCheck in the keyboard), Auth with Google Sign-In, and Firestore for the word deck. Typed sentences are never stored.
- On-device readings come from
NLTokenizerandCFStringTransform. Audio uses cached Gemini voice clips, with Apple's built-in voices as an offline fallback.
Challenges we ran into
Keyboards get very little memory. iOS gives a keyboard about the memory of one photo. We shrank our word model from 7.3 MB to 2.8 MB and fixed a leak that kept old screens alive. Our keyboard now idles at about 25–35 MB.
"I tapped and nothing happened." The keyboard sometimes skipped a redraw after a touch. The lesson panel only showed once the lesson was ready, about 2 s later, so testers tapped twice. A forced redraw on the next frames cut tap-to-panel from about 2,300 ms to 50 ms.
Notifications can't think. iOS can't run a model when a reminder fires. So the agent writes a week of reminders ahead of time. Every practice, even one done inside the keyboard, moves the whole ladder to tomorrow.
Teaching, not translating. Our first Korean lessons asked beginners to build sentences in a script they couldn't read. We rebuilt the flow as teach → ask, with a hard cap on length.
What we learned
- The best study time is the time people already spend. A lesson has to fit in the gap between two messages.
- Hybrid AI is a product choice: who runs it, when, and what the user agrees to.
- App-extension limits (memory, attestation, redraws) shape the whole design.
- Short and kind beats long and complete. Teach one word, ask twice, let them go.
Built With
- apple-foundation-models
- apple-intelligence
- avfoundation
- cloud-firestore
- devicecheck
- firebase
- firebase-ai-logic
- firebase-app-check
- firebase-auth
- gemini
- gemini-tts
- google-sign-in
- ios
- keyboard-extension
- natural-language-framework
- swift
- swiftui
- user-notifications
- xcodegen