code: protected StringBuffer mogrifyChat (
          StringBuffer buf, boolean transformsAllowed, boolean capFirst)
      {
          if (_mogrifyChat) {
              // do the generic mogrifications and translations
              buf = translatedReplacements("x.mogrifies", buf);
  
              // perform themed expansions and transformations
              if (transformsAllowed) {
                  buf = translatedReplacements("x.transforms", buf);
              }
          }
  
          /*
          // capitalize the first letter
          if (capFirst) {
              buf.setCharAt(0, Character.toUpperCase(buf.charAt(0)));
          }
          // and capitalize any letters after a sentence-ending punctuation
          Pattern p = Pattern.compile("([^\\.][\\.\\?\\!](\\s)+\\p{Ll})");
          Matcher m = p.matcher(buf);
          if (m.find()) {
              buf = new StringBuilder();
              m.appendReplacement(buf, m.group().toUpperCase());
              while (m.find()) {
                  m.appendReplacement(buf, m.group().toUpperCase());
              }
              m.appendTail(buf);
          }
          */
  
          return buf;
      }
docs: Helper function for {@link #mogrifyChat(String,byte,boolean,boolean)}.