The relation is not a function
Study and really get to connect with the words and put them into your way of speech also are you talking about german iwas born there i can teach you if you want
Answer:
Ein Docter arbeitet nachts.
Explanation: :)
There are really three main ways of saying "the" in German.
Die - For feminine words (Ex. 'Die Farbe gelb' or 'The color yellow')
Das - For words that are more neutral (Ex. ' The Glas brach' or 'The glass broke')
Der - For Masculine Words (Ex. 'Der Mann isst brot' or 'The man eats bread')