code: def _generalized_word_starts(self, xs):
          
          self.word_starts = []
          i = 0
          for n in range(len(xs)):
              self.word_starts.append(i)
              i += len(xs[n]) + 1
docs: Helper method returns the starting indexes of strings in GST