original_string: private function getDefaultNormalizer()
      {
          $default = $this->getDefault();
          $regex = $this->trueAnswerRegex;
  
          return function ($answer) use ($default, $regex) {
              if (\is_bool($answer)) {
                  return $answer;
              }
  
              $answerIsTrue = (bool) preg_match($regex, $answer);
              if (false === $default) {
                  return $answer && $answerIsTrue;
              }
  
              return '' === $answer || $answerIsTrue;
          };
      }
code: private function getDefaultNormalizer()
      {
          $default = $this->getDefault();
          $regex = $this->trueAnswerRegex;
  
          return function ($answer) use ($default, $regex) {
              if (\is_bool($answer)) {
                  return $answer;
              }
  
              $answerIsTrue = (bool) preg_match($regex, $answer);
              if (false === $default) {
                  return $answer && $answerIsTrue;
              }
  
              return '' === $answer || $answerIsTrue;
          };
      }
code_tokens: private function getDefaultNormalizer ( ) { $ default = $ this -> getDefault ( ) ; $ regex = $ this -> trueAnswerRegex ; return function ( $ answer ) use ( $ default , $ regex ) { if ( \ is_bool ( $ answer ) ) { return $ answer ; } $ answerIsTrue = ( bool ) preg_match ( $ regex , $ answer ) ; if ( false === $ default ) { return $ answer && $ answerIsTrue ; } return '' === $ answer || $ answerIsTrue ; } ; }
docstring: Returns the default answer normalizer.
  
  @return callable
docstring_tokens: Returns the default answer normalizer .