Breakdown of Escrever-te-ei o horóscopo amanhã.
amanhã
tomorrow
escrever
to write
te
you (informal object)
o horóscopo
the horoscope
Questions & Answers about Escrever-te-ei o horóscopo amanhã.
Why is the pronoun te in the middle of the word Escrever-te-ei?
This is a rule called mesoclisis. In European Portuguese, when a verb is in the future indicative tense and the sentence is affirmative (meaning it doesn't have a "trigger" word to pull the pronoun to the front), the object pronoun must be placed inside the verb, rather than before or after it.
How do I know where to split escrever to add the pronoun?
Can I just say Escreverei-te instead to make it easier?
No, attaching a pronoun to the very end of a future tense verb is grammatically incorrect in European Portuguese. You must put it in the middle (escrever-te-ei) unless there is a trigger word like não to pull it to the front (which would become não te escreverei).
What role is te playing in this sentence?
It acts as the indirect object pronoun, meaning "to you" or "for you" (informal singular). The direct object is o horóscopo (the horoscope), which is the thing being written. The structure is essentially "Write-to you-I will the horoscope tomorrow."