I just fixed an entertaining problem with the bayes library and now am pulling in a fork.
Check it out:
Since they were using a raw object you couldn't index a document that contained the word "constructor" since it was already a field.
ie. this.wordFrequencyCount['Political']['constructor'] == function()....
I'll file a merge request with the Bayes library. Value add for community!
--
Ean Schuessler,
Brainfood Co-Founder