<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def render_word(self, text, tag, i):
 """Render individual word. text (unicode):
 Word text. tag (unicode):
 Part-of-speech tag. i (int):
 Unique ID, typically word index. RETURNS (unicode):
 Rendered SVG markup. """

        y = self.offset_y + self.word_spacing
        x = self.offset_x + i * self.distance
        if self.direction == "rtl":
            x = self.width - x
        html_text = escape_html(text)
        return TPL_DEP_WORDS.format(text=html_text, tag=tag, x=x, y=y)