en-zh-bilingual-json

v2026.09.25

Convert English .txt articles into a JSON array of sentence-level English/Chinese (zh) pairs. Translate English into Chinese and generating bilingual {en, zh} entries via the model (no external translation API), then saving to a JSON file.

GitHub
安装命令
npx skhub add seefreed/en-zh-bilingual-json
Markdown
SKILL.md

En Zh Bilingual Json

Overview

Create bilingual JSON from English text, fist translating the text into Chinese using the model, and writing the final JSON array.

Workflow

1) Translate with the model and fill zh

Translate English text to Chinese (zh) using the model and split sentence-level English/Chinese (zh) pairs, finally write back to the same JSON array. Preserve punctuation and sentence intent; keep proper nouns (e.g., product names) as appropriate and remove relevant music transript.

Output format (top-level array):

[
  {"en": "Sentence one.", "zh": " 句子一。"},
  {"en": "Sentence two?", "zh": "句子二?"}
]

2) Review and fix sentence boundaries

Make sure a splited sentence have the complete meaning and if one sentence has less than 5 words, you need to combine it with other sentences of the context so that every en item can't be too short and simple. Given showing a random Chinese sentence, a user will translate it back into English. The goal is to train a user translation ability.

4) Save final JSON

Ensure the JSON remains a valid array of {en, zh} objects. Keep UTF-8 output (the script already writes UTF-8). use the same filename with the text file aside from its format.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.25

发布时间

2026年9月25日

分类

未分类

许可证

未指定

源路径

en-zh-bilingual-json

默认分支

main

最新提交

0dfc81a

Tree SHA

958d518