diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -40,13 +40,15 @@ function populatePositions(text, words) {
 
 function populatePosition(text, entry) {
     var matcher = new RegExp('(?:\\W|^)' + escapeRegExp(entry.word) + '(?:\\W|$)', 'g');
-    var match, wordLength = entry.word.length;
+    var adjustment, match, wordLength = entry.word.length;
 
     entry.positions = [];
     while ((match = matcher.exec(text)) !== null) {
+        adjustment = (match.index == 0 ? 0 : 1);
+
         entry.positions.push({
             from:   match.index + match[0].indexOf(entry.word),
-            to:     match.index + wordLength + 1,
+            to:     match.index + wordLength + adjustment,
             length: wordLength
         });
     }
Fixes issue with misspelled first word

With the phrase "cwos have four", where the first word is misspelled, the positions will be returned as `[ { from: 0, to: 5, length: 4 } ]`, which incorrectly includes the space following the word. This occurs for all cases in which the first word is misspelled and followed by a non-word character.