if you wont to search just by one word change those line
if (contents.indexOf(this.options.trigger) >= 0 && check_contents.match(regex)) ==>
if (contents.indexOf(this.options.trigger) >= 0 && check_contents.match(regex) && check_contents.indexOf(' ') <= 0)
If you wont to search non latinic word change this line:
var regex = new RegExp('\B\'+this.options.trigger+'([\w\-]+)'); =>> var regex = new RegExp('\B\'+this.options.trigger+'([\S\-]+)');
How to disable searching by multi words? I need just search by one word?