code: def learn(self, text):
          
          if type(text) != types.UnicodeType:
              # Assume that non-Unicode text is encoded as utf-8, which
              # should be somewhat safe in the modern world.
              text = text.decode("utf-8", "ignore")
  
          tokens = self.tokenizer.split(text)
          trace("Brain.learn_input_token_count", len(tokens))
  
          self._learn_tokens(tokens)
docs: Learn a string of text. If the input is not already
          Unicode, it will be decoded as utf-8.