original_string: public function humanize($lowerCaseAndUnderscoredWord)
      {
          $word = $lowerCaseAndUnderscoredWord;
          if ($result = $this->getCache($word, 'humanize')) {
              return $result;
          }
  
          $result = ucfirst(str_replace('_', ' ', $this->underscore($word)));
          if (substr($result, -3, 3) == ' id') {
              $result = str_replace(' id', '', $result);
          }
          return $this->setCache($word, 'humanize', $result);
      }
code: public function humanize($lowerCaseAndUnderscoredWord)
      {
          $word = $lowerCaseAndUnderscoredWord;
          if ($result = $this->getCache($word, 'humanize')) {
              return $result;
          }
  
          $result = ucfirst(str_replace('_', ' ', $this->underscore($word)));
          if (substr($result, -3, 3) == ' id') {
              $result = str_replace(' id', '', $result);
          }
          return $this->setCache($word, 'humanize', $result);
      }
code_tokens: public function humanize ( $ lowerCaseAndUnderscoredWord ) { $ word = $ lowerCaseAndUnderscoredWord ; if ( $ result = $ this -> getCache ( $ word , 'humanize' ) ) { return $ result ; } $ result = ucfirst ( str_replace ( '_' , ' ' , $ this -> underscore ( $ word ) ) ) ; if ( substr ( $ result , - 3 , 3 ) == ' id' ) { $ result = str_replace ( ' id' , '' , $ result ) ; } return $ this -> setCache ( $ word , 'humanize' , $ result ) ; }
docstring: Capitalizes the first word and turns underscores into spaces and strips
  _id.
  
  Like titleize(), this is meant for creating pretty output.
  
  Examples:
  1. humanize("employee_salary") => "Employee salary"
  2. humanize("author_id")       => "Author"
docstring_tokens: Capitalizes the first word and turns underscores into spaces and strips _id .