Closed ghost closed 4 years ago
After doing some additional debugging, it seems like the PTrie doesn't support checking uppercase words.
I was able to get around this by calling toLowerCase on the words I added to the Trie, thereby making trie.isWord('fun') === ptrie.isWord('fun')
I constructed a Trie from a Scrabble dictionary which is then packed and used to construct a PTrie. The PTrie itself appears to be populated, though methods such as isWord and completions are not returning expected results.
Example:
Result:
Any ideas why this is occurring?