0.1.0 • Published 10 years ago

hsk-words v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 years ago

hsk-words Build Status

hsk-words is a "batteries-included" library for querying the Chinese Government's HSK (汉语水平考试) word list. This is a test used for university admission for foreigners in the PRC and includes 5,000 words in the list across all 6 levels.

Supports lookup by both traditional and simplified characters.

Usage

var hsk = require('hsk-words');

hsk.findLevel('学习', function(level){
  // level evaluates to -1 if not found, else is in 1..6
  console.log(level);
});

License

MIT