nieldlr / hanzi

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

Avoid adding methods to String prototype #16

Closed djuretic closed 11 years ago

djuretic commented 11 years ago

To avoid polluting the String prototype, I've refactored the code a bit. Also I've created a test for the determinePhoneticRegularity method, I used there becasue it has all five "phonetic regularities".

nieldlr commented 11 years ago

Thanks @djuretic. Good changes!