code: def _convertUnitAsWords(self, unitText):
          
          word_list, a, b = re.split(r"[,\s-]+", unitText), 0, 0
          for word in word_list:
              x = self.ptc.small.get(word)
              if x is not None:
                  a += x
              elif word == "hundred":
                  a *= 100
              else:
                  x = self.ptc.magnitude.get(word)
                  if x is not None:
                      b += a * x
                      a = 0
                  elif word in self.ptc.ignore:
                      pass
                  else:
                      raise Exception("Unknown number: " + word)
          return a + b
docs: Converts text units into their number value.
  
          @type  unitText: string
          @param unitText: number text to convert
  
          @rtype:  integer
          @return: numerical value of unitText