When I tried oktavia, I got the following exception:
/path/to/oktavia/bin/oktavia-mkindex:816
if (stemmedList.indexOf(compressedCodeWord) === -1) {
^
TypeError: Object function Object() { [native code] } has no method 'indexOf'
at Oktavia.addWord$SB (/path/to/oktavia/bin/oktavia-mkindex:816:21)
at SAXHandler._HTMLHandler.ontext$S (/path/to/oktavia/bin/oktavia-mkindex:4614:16)
at SAXParser.closetext$ (/path/to/oktavia/bin/oktavia-mkindex:5445:17)
at SAXParser.closetext_if_exist$ (/path/to/oktavia/bin/oktavia-mkindex:5424:8)
at SAXParser.closeTag$ (/path/to/oktavia/bin/oktavia-mkindex:5615:8)
at SAXParser.parse$S (/path/to/oktavia/bin/oktavia-mkindex:5323:11)
at HTMLParser.parse$S (/path/to/oktavia/bin/oktavia-mkindex:1521:9)
at Function._Main.main$AS (/path/to/oktavia/bin/oktavia-mkindex:349:18)
at Object.JSX.runMain (/path/to/oktavia/bin/oktavia-mkindex:24989:15)
at /path/to/oktavia/bin/oktavia-mkindex:25035:5
at Object.<anonymous> (/path/to/oktavia/bin/oktavia-mkindex:25036:3)
at Module._compile (module.js:456:26)
After some investigations, I found the problem.
Here, registerWord == "constructor" and therefore stemmedList is a function object.
When I tried oktavia, I got the following exception:
After some investigations, I found the problem. Here,
registerWord
== "constructor" and thereforestemmedList
is a function object.