nathanjsweet/nodehun — pull request #14 by jtemplet (2014-12-18 20:17:18+00:00)
Title: Added 'origWord' to callback signature

In order to have an efficient way of knowing what word is being spellchecked (without doing closures or recursive functions) I added the "originalWord" to the callback signature for further processing.

I tried to use closures originally but found that this was causing memory leaks. Just adding the "originalWord" to the callback made the spellcheck more efficient and performant.