code: def validate_word(self, word):
          
          while word:
              match = self.seg_regex.match(word)
              if match:
                  word = word[len(match.group(0)):]
              else:
                  # print('{}\t->\t{}\t'.format(orig, word).encode('utf-8'), file=sys.stderr)
                  return False
          return True
docs: Returns True if `word` consists exhaustively of valid IPA segments
  
          Args:
              word (unicode): input word as Unicode IPA string
  
          Returns:
              bool: True if `word` can be divided exhaustively into IPA segments
                    that exist in the database