"He hears the duck."
Translation:Hij hoort de eend.
There is no rule. You are right in that you simply need to remember which article goes with which word. It's similar to learning whether to use "le" or "la" in French. We do have a lovely, thorough explanation of articles in Dutch courtesy of Lavinae: https://www.duolingo.com/comment/3732938