Index: graphspell-js/dawg.js ================================================================== --- graphspell-js/dawg.js +++ graphspell-js/dawg.js @@ -146,20 +146,20 @@ this.finish(); this.countNodes(); this.countArcs(); this.sortNodeArcs(dValOccur); this.displayInfo(); - //this.writeInfo(); + this.writeInfo(); //this.oRoot.display(0, this.lArcVal, true); } // BUILD DAWG insert (aEntry) { if (aEntry < this.aPreviousEntry) { throw "Error: Words must be inserted in alphabetical order."; } - + console.log(aEntry); // find common prefix between word and previous word let nCommonPrefix = 0; for (let i = 0; i < Math.min(aEntry.length, this.aPreviousEntry.length); i++) { if (aEntry[i] != this.aPreviousEntry[i]) { break;