code: function( indices ) {
  	indices = sortIndices( indices );
  	var filtered = [];
  	for ( var i = 0; i < indices.length; i++ ) {
  		// If the next index is within the range of the current index and the length of the word, remove it
  		// This makes sure we don't match combinations twice, like "even though" and "though".
  		if ( ! isUndefined( indices[ i + 1 ] ) && indices[ i + 1 ].index < indices[ i ].index + indices[ i ].match.length ) {
  			filtered.push( indices[ i ] );
  
  			// Adds 1 to i, so we skip the next index that is overlapping with the current index.
  			i++;
  			continue;
  		}
  		filtered.push( indices[ i ] );
  	}
  	return filtered;
  }
docs: Filters duplicate entries if the indices overlap.
  
  @param {Array} indices The array with indices to be filtered.
  @returns {Array} The filtered array.