@nahanil/hsk-words

0.2.2 • Public • Published

pipeline status coverage report NPM version    

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.

This is mostly based off John Heroy's hsk-words

Usage

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

let level = await hsk.findLevel('学习')
// -1 if not found, otherwise 1-6

// Get a list of the words at a given HSK level
let l3 = await hsk.getWordList(3)
// [ { level: 1, simplified: '学习', pinyin: 'xue2 xi2', definitions: 'to learn; to study' } ]

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    26
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    26
  • 0.2.0
    0

Package Sidebar

Install

npm i @nahanil/hsk-words

Weekly Downloads

26

Version

0.2.2

License

MIT

Unpacked Size

724 kB

Total Files

5

Last publish

Collaborators

  • nahanil