If you find yourself comparing sentences to work out small grammar differences (like how 的 is working in each one), the best answer is usually to keep reading. You'll understand these differences by seeing them in lots of different contexts. The video below explains more.
Summary
Leaving out a repeated word: when the word after 的 was already mentioned earlier in the sentence, it's usually left out because it's obvious. Repeating it isn't wrong, and people sometimes do it for emphasis.
Some words can't be dropped: in the video's second example, taking out the word for "when" changes the meaning or makes the sentence incorrect, just like taking "when" out of an English sentence
Puzzling it out consciously is a trap: the ways a language works are so subtle that trying to work them all out consciously never ends, and it takes time away from reading more sentences
Knowing the rule isn't the same as acquiring it: an answer gives you a piece of knowledge about Chinese, but it doesn't make the word available to you when you speak, listen or write
的 is the perfect example: it's the most frequent character in the language, so you'll see it in most sentences and your brain will pick up how it works without you noticing
Keep going with the Mandarin Blueprint Method: keep getting examples you understand in context, and you'll find you've got the answers to these questions without even realizing it
Have questions?
If you have any questions or need more details, message us here or email contact@mandarinblueprint.com. We're always happy to help!
