There are two patterns:
- “Words” + demek: “Geliyorum” dedi — “‘I'm coming,’ he said”.
- “Words” + diye + a verb of speech or thought: “Yardım edin!” diye bağırdı — “‘Help!’ he shouted”.
The quoted words come before the verb, without a case suffix and without a conjunction. Inside them everything stays as the speaker said it: person, tense, the imperative.
Demek means “say”. Its stem is de-: dedi — “said”, der — “says, will say” (aorist). Before -yor and in some forms with y the vowel of the stem narrows: diyor — “is saying, says”, diyecek — “will say”, diye; but deyince, deyip.
Diye is the converb of demek in -(y)A, and it does not change. The TDK dictionary explains it this way: diye links words to a verb in the sense of diyerek — “saying”. After diye comes a verb that tells how the words sounded or what was done with them: bağırmak “shout”, sormak “ask”, cevap vermek “answer”, yazmak “write”, düşünmek “think”.
What it expresses
- Someone's words, verbatim: Ali “Yoruldum” dedi — “Ali said, ‘I'm tired’”.
- A question, a shout, a thought — with diye: “Saat kaç?” diye sordu — “‘What time is it?’ he asked”.
- A name — demek with the dative case means “call”: Türkler buna simit diyor — “Turks call this a simit”. Diye after a name means “named”: Süleyman diye biri — “someone called Süleyman” (an example from the TDK dictionary).
- The meaning of a word: Bu kelime ne demek? — “What does this word mean?”