index.js
function (word) {
      var pattern = '',
        any = '[^a-z0-9]?',
        last = false,
        character;

      for (var i = 0; i < word.length; i++) {
        last = i === (word.length - 1);
        character = word.charAt(i);

        if (typeof this.map1337[character] === 'undefined') {
          pattern += (character + (!last ? any : ''));

          continue;
        }

        if (typeof this.map1337[character] === 'string') {
          pattern += ('((' + character + '|' + this.map1337[character] + ')' + (!last ? any : '') + ')');

          continue;
        }

        pattern += '((' + character;

        for (var m = 0; m < this.map1337[character].length; m++) {
          pattern += '|' + this.map1337[character][m];
        }

        pattern += ')' + (!last ? any : '') + ')';
      }

      this.patterns.words.pattern.push(new RegExp(pattern, 'ig'));

      return this;
    }
function (word) {
      var pattern = '',
        any = '[^a-z0-9]?',
        last = false,
        character;

      for (var i = 0; i < word.length; i++) {
        last = i === (word.length - 1);
        character = word.charAt(i);

        if (typeof this.map1337[character] === 'undefined') {
          pattern += (character + (!last ? any : ''));

          continue;
        }

        if (typeof this.map1337[character] === 'string') {
          pattern += ('((' + character + '|' + this.map1337[character] + ')' + (!last ? any : '') + ')');

          continue;
        }

        pattern += '((' + character;

        for (var m = 0; m < this.map1337[character].length; m++) {
          pattern += '|' + this.map1337[character][m];
        }

        pattern += ')' + (!last ? any : '') + ')';
      }

      this.patterns.words.pattern.push(new RegExp(pattern, 'ig'));

      return this;
    }
function ( word ) { var pattern = '' , any = '[^a-z0-9]?' , last = false , character ; for ( var i = 0 ; i < word . length ; i ++ ) { last = i === ( word . length - 1 ) ; character = word . charAt ( i ) ; if ( typeof this . map1337 [ character ] === 'undefined' ) { pattern += ( character + ( ! last ? any : '' ) ) ; continue ; } if ( typeof this . map1337 [ character ] === 'string' ) { pattern += ( '((' + character + '|' + this . map1337 [ character ] + ')' + ( ! last ? any : '' ) + ')' ) ; continue ; } pattern += '((' + character ; for ( var m = 0 ; m < this . map1337 [ character ] . length ; m ++ ) { pattern += '|' + this . map1337 [ character ] [ m ] ; } pattern += ')' + ( ! last ? any : '' ) + ')' ; } this . patterns . words . pattern . push ( new RegExp ( pattern , 'ig' ) ) ; return this ; }
Add a word to filter out.

@param   {String}    word
@returns {Censoring}
Add a word to filter out .