# Data provenance · pinyin/ 拼音工具

## Search index — `words.json`

The word lookup index (`data/words.json`) is a slim, level-tagged, deduplicated
index generated from the vocabulary already shipped in this site's
`/library/data/level-*.json`. That vocabulary is an **adaptation of CC-CEDICT
(and community HSK transcriptions)**, distributed under
**Creative Commons Attribution-ShareAlike 4.0 (CC BY-SA 4.0)**.

- Source files: `/library/data/level-1.json` … `level-7.json`
- Fields per record: `[hanzi, pinyin, meaning, level]`
- Changes made here: lowercased pinyin, merged all levels into one flat list,
  and deduplicated by (hanzi, pinyin) keeping the first (lowest-level) entry.
- Upstream attribution: CC-CEDICT / MDBG and community contributors (including
  earlier CEDICT work by Paul Andrew Denisowski), Ivan Krasilnikov's HSK
  transcription and Yanis Zafirópulos's complete-hsk-vocabulary. Full notices
  are retained in `/library/data/THIRD_PARTY_NOTICES.md` and
  `/library/data/README.md`.

The full license text is bundled at `data/CC-BY-SA-4.0.txt`.

## Pinyin engine — `vendor/pinyin-pro.js`

`pinyin-pro` v3.29.5 by zh-lx, used for character → pinyin / 声母 / 韵母 / 声调
conversion, polyphonic detection and tone conversion. Licensed under the
**MIT License**; the notice is bundled at `vendor/pinyin-pro.LICENSE.txt`.
Project: https://github.com/zh-lx/pinyin-pro

## Polyphonic examples — `data.js`

The polyphonic-character example words and sentences are original content
written for LingoFruit 灵果中文.
