Skip to content

Commit

Permalink
Remove unused third argument in classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Feb 4, 2017
1 parent 845d88b commit bae20ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/classify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ module.exports = function classify (speech, debug) {
}
// No ? Let's try between a preposition and
// determiners/nouns
// Example: "Compile all javascript as application.js"
} else if (determiners.length > 0 && preps.length > 0) {
var prepIndex = words.indexOf(preps[0])
var detIndex = words.indexOf(determiners[0])

owner = words.slice(prepIndex + 1, -1, detIndex).join(' ')
owner = words.slice(prepIndex + 1, -1).join(' ')
// Hmm, now let's try between the action and the word "to"
} else if (to.length > 0) {
owner = getBetween(words, 'VB', 'TO').slice(0, -1).join(' ')
Expand Down

0 comments on commit bae20ca

Please sign in to comment.