Deep dive

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.

9 min9 / 9

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

PartWhat it does
Lessons24 short grammar lessons from A1 to B2, each with rules, a table, a typical mistake versus natural Brazilian Portuguese, a cultural tip and examples
Reading12 texts on six Brazilian themes such as food, travel and history, with a one-click translation, grammar highlights, a glossary and a mini quiz
VerbsThe 150 most important verbs plus a conjugator that shows nine tenses for any verb you type in
ContractionsA clickable grid such as de + o = do, with an example sentence and whether it is standard or only spoken
Quiz54 questions, multiple choice and fill-in, filterable by level and topic, with buttons for accented letters like ã and ç
ProgressCompleted lessons, read texts and quiz results are saved in your browser
Why a single web page?Everything, design, content and logic, sits in one HTML file. No database, no server, no costs. You can open it in any browser, share it as a link or embed it in a free Google Site, as we did. That is the simplest way to build your own tool, and it is enough for a personal learning app.

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.
Prefer ChatGPT or Claude?The same method works there: ChatGPT has canvas and Claude creates interactive pages too. The below work in all three.

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.”
One change per messageIf you ask for five things at once, the AI often breaks something that already worked. Small steps are faster in the end. If something goes wrong, go back to an earlier version.

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

  1. 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?
  2. 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.
  3. 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.
Where is my progress stored?With localStorage, progress is saved only in the browser on that one device. It does not sync between phone and computer, and it disappears if you clear the browser data. For a personal tool that is usually fine. If you need sync, ask for an “export and import my progress as a file” button instead of adding logins and databases.

How to adapt it to your needs

The structure of Gramáticazinho works for almost any language. Tell Gemini which parts to swap:

PartSpanishFrenchGerman
Pronounstú, vosotros (Spain) or ustedes (Latin America)tu, vous, ondu, Sie, ihr
Reference gridser vs. estardu, au, des contractionsarticles by case: der, den, dem, des
Special charactersñ á é í ó ú ¿ ¡é è ê à ç ôä ö ü ß
Typical trapssubjunctive after “ojalá”passé composé vs. imparfaitword 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 partBecomes, for example…
LessonsShort explanations for Excel, first aid, music theory or your driving licence theory
Reading texts with translationCase studies with a “show explanation” button
Top 150 verbs and conjugatorA searchable list: Excel functions, guitar chords, plant care, medication schedule of your pet
Contractions gridA comparison grid: tariffs, insurance options, recipes by ingredient
Quiz with progressExam 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.
Want more power?If your tool should one day use AI itself, for example to correct free-text answers, Google AI Studio has a build mode for full apps with Gemini built in. For a personal grammar trainer, Canvas is enough.

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.

Try it now: Write down three grammar points or facts you keep forgetting. Open Gemini Canvas, paste the starting prompt with these three as lessons, and build version one today. It takes about 20 minutes.

Sources used

Tip: use ← and → to move between lessons.