docs: function process(options) {
        var windowSelection = $window.getSelection();
        var range = windowSelection.getRangeAt(0);
  
        var selection = service.Selection(range);
  
        if (options.snapToWord) {
          selection.snapToWord();
        }
  
        if (options.highlight) {
          selection.highlight('<span style="background-color: yellow;"></span>');
        }
  
        return selection;
      }