original_string: private function validate()
      {
          if (!stristr(self::CHARACTER_LIST, $this->value[0])) {
              throw new \Exception('Invalid first character: ' . $this->value[0]);
          }
  
          if (!in_array($this->value, self::listForCharacter($this->value[0]))) {
              throw new \Exception('Word not in known list of words: ' . $this->value);
          }
      }
code: private function validate()
      {
          if (!stristr(self::CHARACTER_LIST, $this->value[0])) {
              throw new \Exception('Invalid first character: ' . $this->value[0]);
          }
  
          if (!in_array($this->value, self::listForCharacter($this->value[0]))) {
              throw new \Exception('Word not in known list of words: ' . $this->value);
          }
      }
code_tokens: private function validate ( ) { if ( ! stristr ( self :: CHARACTER_LIST , $ this -> value [ 0 ] ) ) { throw new \ Exception ( 'Invalid first character: ' . $ this -> value [ 0 ] ) ; } if ( ! in_array ( $ this -> value , self :: listForCharacter ( $ this -> value [ 0 ] ) ) ) { throw new \ Exception ( 'Word not in known list of words: ' . $ this -> value ) ; } }
docstring: Validate word against list of allowed characters and words
  
  @throws \Exception
docstring_tokens: Validate word against list of allowed characters and words