I watched Olly Richards' video Everyone is Bad at Languages Until They Learn THIS. In it, Stephen Krashen, the linguist behind the comprehensible input hypothesis and one of the big names in language learning, teaches German with gestures and simple words, "Mr. Spock hat zwei Ohren". At the same time he draws basic shapes that are easy to recognise. And you follow along without knowing German. His point:
"We acquire language in only one way, when we understand what people say."
But how do we understand? From context. Krashen's German works because the gestures, drawings and simple words give you enough clues. And if you understand a sentence and one word in it is swapped for a foreign one, you guess its meaning automatically. In essence, you understand it, and that's all acquiring takes.
A word you see again and again in context teaches itself. Grammar too: around 11:43 Olly shows je viens de manger, il vient de partir, and your brain gets "venir de = just did" without a rule table.
So why not swap some words in the texts I read all day long? For me, that's Claude Code's replies. They're about my own code, so I always understand them, and a few Portuguese words in them are easy to guess.
That is what pt-weave does, a Claude Code plugin I made. A reply looks like this:
Já está — the tests pass, mas one is flaky. Vou ver the logs depois.
🇵🇹 já está — done · mas — but · vou ver — I'll check · depois — later
It weaves glue words, not nouns. I already had plenty of nouns. What I struggled with was all the glue around them: ser and estar, já and ainda, prepositions, the past and the future. I think I'm not the only one. So it starts with a list of about 170 glue items, then moves on to the 1000 most common Portuguese words. I have a book of those, and they are what I want to know in the end. Cognates like sistema or importante are skipped: you know them already.
The first version just kept bringing in new words, and I wasn't sure I'd learned the previous ones. A word needs to come back for a long time to stick. So now each word returns on a spaced-repetition schedule, 1, 3, 7, 15, 31 and 63 days, and reviews come before new words. After the second review the gloss drops, and the Portuguese stays. Reply by reply, the text turns more Portuguese.
It's European Portuguese: estou a fazer, ecrã, ficheiro, no fazendo. Code, commits, PR text and anything for other people stay in English, and so do errors and anything you must read precisely. Nothing leaves your machine.
Three weeks in, it has woven about 170 words into my sessions, and I read around 35 of them without a translation. I also noticed I tend to skim over the words, so version 0.3 puts more of them in each reply, and uses easy ones like e, não and muito without limit.
Install it with
claude plugin install pt-weave --marketplace grigorii-lapshin/pt-weave
/pt shows your progress, and /pt more turns the dial up. The code is on GitHub. Até amanhã!