docs: function cleanUpText(input, substitutions) {
      if (!input) {
          return '';
      }
  
      // Uppercase and remove all non-alphanumeric, non-accented characters.
      // Also remove underscores.
      input = input.toUpperCase().replace(/((?=[^\u00E0-\u00FC])\W)|_/g, '');
  
      if (!substitutions) {
          return input;
      }
      var safeSubstitutions = substitutions; // For Flow.
  
      // Replace all strings in `safeSubstitutions` with their standardized
      // counterparts.
      return Object.keys(safeSubstitutions).reduce(function (output, substitution) {
          var unsubbed = new RegExp(substitution, 'g');
          return output.replace(unsubbed, safeSubstitutions[substitution]);
      }, input);
  }