code: def segs_safe(self, word):
          
          segs = []
          while word:
              m = self.seg_regex.match(word)
              if m:
                  segs.append(m.group(1))
                  word = word[len(m.group(1)):]
              else:
                  segs.append(word[0])
                  word = word[1:]
          return segs
docs: Return a list of segments (as strings) from a word
  
          Characters that are not valid segments are included in the list as
          individual characters.
  
          Args:
              word (unicode): word as an IPA string
  
          Returns:
              list: list of Unicode IPA strings corresponding to segments in
                    `word`