nieldlr / hanzi

HanziJS is a Chinese character and NLP module for Chinese language processing for Node.js
http://hanzijs.com
MIT License
375 stars 56 forks source link

Bug/fix frequency #32

Closed nieldlr closed 7 years ago

nieldlr commented 7 years ago

Fixes some cases where characters in using getCharacterFrequency, like 貙, were returning empty even though they were in the frequency list.

cc @raylillywhite just note that I updated this function a little bit after your changes 👍