build/bundle.js
/**
   *
   *
   * @static
   * @param {String} text - a string of spaced words with unwanted characters
   * @returns{String} term -
   *  a string of spaced words with no unwanted characters
   *
   * @memberOf InvertedIndex
   */
@static
@param {String} text - a string of spaced words with unwanted characters
@returns{String} term
a string of spaced words with no unwanted characters


@static @param { String } text - a string of spaced words with unwanted characters @returns { String } term a string of spaced words with no unwanted characters
static removeBadCharacters(text) {
    const invalid = /[.,/#!$%^&*;:{}=\-_`~()]/g;
    const term = text.replace(invalid, '');
    return term;
  }
static removeBadCharacters ( text ) { const invalid = / [.,/#!$%^&*;:{}=\-_`~()] / g ; const term = text . replace ( invalid , '' ) ; return term ; }
@static
 @param {String} text - a string of spaced words with unwanted characters
 @returns{String} term
  a string of spaced words with no unwanted characters
@static @param { String } text - a string of spaced words with unwanted characters @returns { String } term a string of spaced words with no unwanted characters