docs: def _extract_word(self, source, position):
          """
          Extracts the word that falls at or around a specific position
  
          :param source:
              The template source as a unicode string
          :param position:
              The position where the word falls
  
          :return:
              The word
          """
          boundry = re.search('{{|{|\s|$', source[:position][::-1])
          start_offset = boundry.end() if boundry.group(0).startswith('{') else boundry.start()
  
          boundry = re.search('}}|}|\s|$', source[position:])
          end_offset = boundry.end() if boundry.group(0).startswith('}') else boundry.start()
  
          return source[position - start_offset:position + end_offset]