-
Notifications
You must be signed in to change notification settings - Fork 20
TypeError: Cannot read property 'forEach' of null #26
Copy link
Copy link
Open
Description
This occurs only when you have a stop word, followed by multiple spaces, and then followed by a stop word.
For example:
> rake.generate("Please elaborate on planets of the")
TypeError: Cannot read property 'forEach' of null
at phraseList.forEach (/Users/mastover/git/rake-test/node_modules/node-rake/index.js:75:16)
at Array.forEach (<anonymous>)
at Rake.calculatePhraseScores (/Users/mastover/git/rake-test/node_modules/node-rake/index.js:71:16)
at Rake.generate (/Users/mastover/git/rake-test/node_modules/node-rake/index.js:89:31)
at Object.generate (/Users/mastover/git/rake-test/node_modules/node-rake/app.js:13:21)
> rake.generate("Please elaborate on planets of the")
[ 'elaborate', 'planets' ]
> rake.generate("Please elaborate on planets of the")
[ 'elaborate', 'planets' ]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels