class_docstr: Render dependency parses as SVGs.
class_docstr_tok: ["Render","dependency","parses","as","SVGs","."]
docstr: Render individual word.
  
  text (str): Word text.
  tag (str): Part-of-speech tag.
  i (int): Unique ID, typically word index.
  RETURNS (str): Rendered SVG markup.
docstr_tok: ["Render","individual","word",".","text","(","str",")",":","Word","text",".","tag","(","str",")",":","Part-of-speech","tag",".","i","(","int",")",":","Unique","ID",",","typically","word","index",".","RETURNS","(","str",")",":","Rendered","SVG","markup","."]
code: def render_word(self, text: str, tag: str, lemma: str, i: int) -> str:
      """Render individual word.
  
      text (str): Word text.
      tag (str): Part-of-speech tag.
      i (int): Unique ID, typically word index.
      RETURNS (str): 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)
      if lemma is not None:
          return TPL_DEP_WORDS_LEMMA.format(
              text=html_text, tag=tag, lemma=lemma, x=x, y=y
          )
      return TPL_DEP_WORDS.format(text=html_text, tag=tag, x=x, y=y)
  
imports: import uuid
  from typing import Any, Dict, List, Optional, Tuple, Union
  from ..errors import Errors
  from ..util import escape_html, minify_html, registry
  from .templates import TPL_DEP_ARCS, TPL_DEP_SVG, TPL_DEP_WORDS, TPL_DEP_WORDS_LEMMA, TPL_ENT, TPL_ENT_RTL, TPL_ENTS, TPL_FIGURE, TPL_KB_LINK, TPL_PAGE, TPL_SPAN, TPL_SPAN_RTL, TPL_SPAN_SLICE, TPL_SPAN_SLICE_RTL, TPL_SPAN_START, TPL_SPAN_START_RTL, TPL_SPANS, TPL_TITLE
label_desc: Use image node_id 4 for calling the DependencyRenderer obj's underlying member method code with example usage: obj.render_word(text, tag, lemma, i) and returns: TPL_DEP_WORDS, TPL_DEP_WORDS_LEMMA