code: def next(self, type=None):
          
          i = self.stop
          s = self.sentence
          while i < len(s):
              if s[i].chunk is not None and type in (s[i].chunk.type, None):
                  return s[i].chunk
              i += 1
docs: Returns the next chunk in the sentence with the given type.