Build your own learning app with AI: how we made Gramáticazinho, and how you can make yours
Gramáticazinho is a light grammar trainer for Brazilian Portuguese, built with Gemini without programming. Here is the step-by-step guide to build a similar tool for your own language or topic, with copy-ready prompts.
Language apps are great for vocabulary, but they often miss what you actually struggle with. For Brazilian Portuguese that means things like “a gente” instead of “nós”, the spoken “pra” and “pro”, or when to use “estar” with a gerund. So we built our own small tool: Gramáticazinho. It has no server, no subscription and no login. It is a single web page that Gemini wrote from our descriptions, and you can build something similar in an afternoon.
What Gramáticazinho can do
| Part | What it does |
|---|---|
| Lessons | 24 short grammar lessons from A1 to B2, each with rules, a table, a typical mistake versus natural Brazilian Portuguese, a cultural tip and examples |
| Reading | 12 texts on six Brazilian themes such as food, travel and history, with a one-click translation, grammar highlights, a glossary and a mini quiz |
| Verbs | The 150 most important verbs plus a conjugator that shows nine tenses for any verb you type in |
| Contractions | A clickable grid such as de + o = do, with an example sentence and whether it is standard or only spoken |
| Quiz | 54 questions, multiple choice and fill-in, filterable by level and topic, with buttons for accented letters like ã and ç |
| Progress | Completed lessons, read texts and quiz results are saved in your browser |
What you need
- A Google account and Gemini Canvas, which is free in the Gemini app on the web (see our Gemini course).
- A computer: building and editing work best in the browser on a desktop.
- A clear idea of what you want to practise. That is the most important ingredient.
- Optional: someone who knows the subject well, to check the content. More on that in step 5.
Step 1: plan small
Gramáticazinho has five parts, but it did not start that way. The first version had only lessons and a quiz. Write down on paper: what do I keep getting wrong? What would I like to look up quickly? What would I like to practise every day? Choose two parts for the start. Everything else comes later.
Step 2: describe the app in one good prompt
Open gemini.google.com, choose Canvas in the tools below the input field and paste a description like this one. The more precise you are about content and behaviour, the better the first version.
The starting prompt
Build a learning web app as a single HTML file for [language or topic] for a learner at level [A2] whose native language is [English]. Sections as tabs: 1. Lessons: [6] short grammar lessons about [topics]. Each lesson: 3 rules, a small table, one typical mistake with the correct version, 4 example sentences with translation. 2. Quiz: [15] questions about these lessons, multiple choice and fill-in-the-blank, with an explanation after each answer and buttons for special characters [ã, ç, é]. Requirements: clean, calm design, works well on phones, large readable text. Store all content in clearly named data lists at the top of the code, so I can add lessons later. Save completed lessons and quiz results in the browser (localStorage). No login, no server, no external services except a font.
The sentence about data lists is the secret: content stays separate from the code, so you can expand it later without breaking anything.
Step 3: improve in small steps
Canvas shows your app on the right as a working preview. Click through everything, then ask for one change at a time. With Select & ask you can mark a part of the app and describe the change only for that part. Good follow-ups:
- “The quiz should accept answers without accents and still point out the correct spelling.”
- “Add a progress bar at the top that shows how many lessons I have completed.”
- “The buttons are too small on my phone. Make them bigger.”
- “Something broke: the quiz no longer shows the explanation. Fix only that and change nothing else.”
Step 4: add the content
Once the structure works, fill it with content. Ask for new lessons in the same format, a few at a time:
More lessons in the same format
Add 4 more lessons to the lesson list, in exactly the same format as the existing ones: [topics]. Level [B1]. Use natural, everyday examples from [country]. Change nothing else in the app.
Small batches keep the quality up and make checking easier.
Then add more parts step by step, the way Gramáticazinho grew: reading texts with a translation button, a verb list with a conjugator, a reference grid for something you always look up.
Step 5: check the content
This is the step most people skip, and the most important one. AI writes convincing grammar explanations that are sometimes wrong: an irregular verb conjugated like a regular one, a rule that applies to Portugal but not Brazil, an example nobody would actually say. A wrong rule that you practise every day is worse than no app.
- Ask a native speaker or teacher to look through the lessons and quiz answers. Half an hour is enough.
- Check the conjugator with irregular verbs you know, for example “ser”, “ir”, “fazer”, “pôr”.
- Let a second AI check: paste the lesson list into another chatbot and ask “Find factual or grammatical errors in these lessons for [variant of the language].” Then decide yourself.
- Name the variant: Brazilian or European Portuguese, Spanish from Spain or Mexico. Otherwise rules get mixed up.
Step 6: test, save and share
- Test on your phone: open the app, do a lesson and a quiz, close the browser and open it again. Is your progress still there?
- Back up the code: download or copy the HTML from Canvas and keep it in Google Drive. If a later change breaks something, you have a working version.
- Share it: in Canvas you can create a public link. Or do what we did: create a free Google Site, add a page as Full page embed, choose Embed code and paste the HTML.
How to adapt it to your needs
The structure of Gramáticazinho works for almost any language. Tell Gemini which parts to swap:
| Part | Spanish | French | German |
|---|---|---|---|
| Pronouns | tú, vosotros (Spain) or ustedes (Latin America) | tu, vous, on | du, Sie, ihr |
| Reference grid | ser vs. estar | du, au, des contractions | articles by case: der, den, dem, des |
| Special characters | ñ á é í ó ú ¿ ¡ | é è ê à ç ô | ä ö ü ß |
| Typical traps | subjunctive after “ojalá” | passé composé vs. imparfait | word order in subordinate clauses |
Adapt the app to another language
Adapt this app to [European Portuguese / Spanish from Mexico / French]. Keep the structure and design. Replace: the lessons and examples, the pronouns in the conjugator, the special-character buttons with [characters], and the reference grid with [topic]. Change the colours to [colours]. List everything you changed at the end.
The list at the end shows you what to check.
Not a language? Use it for any topic
| Gramáticazinho part | Becomes, for example… |
|---|---|
| Lessons | Short explanations for Excel, first aid, music theory or your driving licence theory |
| Reading texts with translation | Case studies with a “show explanation” button |
| Top 150 verbs and conjugator | A searchable list: Excel functions, guitar chords, plant care, medication schedule of your pet |
| Contractions grid | A comparison grid: tariffs, insurance options, recipes by ingredient |
| Quiz with progress | Exam preparation with your own questions |
Five upgrades worth adding later
- Pronunciation: “Add a speaker button to every example that reads the sentence aloud with the browser’s built-in speech output in [pt-BR].” No extra service needed.
- Repeat mistakes: “Questions I answer wrongly should come back after 1, 3 and 7 days.”
- Backup: a button to download and upload your progress as a file.
- Dark mode for learning in the evening.
- Your own words: a field where you add phrases you heard in real life, which then appear in the quiz.
Typical mistakes
- Too much at once. A huge first prompt gives a confusing app. Start with two parts.
- Unchecked content. Especially grammar and exceptions need a human check.
- No backup of the code. Save a working version before every bigger change.
- Personal data in a shared app. If you share the link, do not put names or private notes into the content.
- Keys and passwords in the code. Never paste API keys or passwords into an HTML file you share; anyone can read the code.
Try the original first: open Gramáticazinho. Then build your own, and if you want to learn more about learning with AI, continue with Learn with AI: build your own tutor.
Sources used
- Gramáticazinho: Brazilian Portuguese grammar trainer
- Google Gemini Help: Create docs, apps & more with Canvas
- Google: Gemini Canvas overview
- Google Sites Help: Add Google files, videos, website content & more (embed code, full page embed)
- Google AI for Developers: Build apps in Google AI Studio
- MDN Web Docs: Window.localStorage
- MDN Web Docs: Web Speech API (speech output)
Tip: use ← and → to move between lessons.