朗文9000单词,导出一份jsonl格式,方便集成使用。
longman_9000.jsonl (26.7 MB)
每个字段的含义参考:https://github.com/AstraLeap/easydict
{
"dict_id": "my_dict", // 必填,词典id
"entry_id": 212, // 必填,**不重复**的entry标识符,**整型**
"headword": "fog", // 与headline二选一。可重复的词头
"headline": "つける【付ける・附ける】", // 与headword二选一。如果选择headline,则必须使用links字段,用来表明查什么词可以查到本词头
"headword_syllable": "en·thu·si·asm", //记录音节
"links": "from_word", //可以是string或者是list of string,查询"from_word"时也能查到本词条
"phonetic": "pinyin", // 可选,辅助搜索词,主要用于表意文字
"entry_type": "word", // 可选,word或phrase等等
"groups": [122, 254], // 可选,对应groups表中的group_id,可以是数字,也可以是数字列表
"page": "medical", // 可选,比如“药学词典”、“美语词典”,查词界面会根据不同的page给entry分组,同时只会显示一组page相同的entry
"section": "noun", // 可选,区分同一个page下不同的entry,section可以是不同起源,也可以是不同词性
"certifications": ["IELTS", "TOEFL", "CET-4"], // 可选,还没想好怎么实现
"frequency": {
"level": "B1",
"stars": "3/5",
"source": "Oxford 3000",
}, // 可选,还没想好怎么实现
"stroke": "3", // 可选,笔画数
"pos": "n", // 可选,词性,仅在当前entry只有一个词性时使用!!否则请通过sense_group的group_name实现
"pronunciation": [
{
"region": "US",
"notation": "/fɔːɡ/",
"audio_file": "fog_us.mp3",
"note": "something to add",
},
{
"region": "UK",
"notation": "/fɒɡ/",
"audio_file": "fog_uk.opus",
},
], //可选,可以是map,也可以是list of map
"phrases": ["fog in", "fog of"], // 可选,短语部分,点击后将以小窗的形式展开短语内容
"data": {
"key1": {},
"key2": {},
}, //可选,本部分为自定义数据部分,会渲染为tab组件,key1,key2会显示为tab名。**value一定要是map**,data可以放在词典的任何地方
"customKey": {}, //除了规范里给定的键值外,还可以添加自定义键值,这会被渲染为board元素。board标题为customKey,customKey对应的值需要是一个map,map里的键值对会被渲染为board的内容。
"table": {
"column": ["id", "姓名", "职位"],
"content": [
[1, "张三", "工程师"],
[2, "李四", "设计师"],
],
}, //表格元素可以放在json的任意位置
"sense": [
{
"index": 1, //必选
"label": {
"signpost": "same opinion",
"word": "someword",
"pos": "n",
"grammar": ["U", "S"],
"pronunciation": "/dɔːɡ/",
"variant": "foggy",
"region": "global",
"pattern": ["in a ~", "mental ~"],
"register": "informal",
"usage": ["figurative"],
"tone": "neutral",
"complex": "雜",
"topic": ["psychology"],
"others": "other label", //可以使用自定义的键名
}, //里面全部是可选,里面所有的值都既可以是string,也可以是string list。label的值既可以是一个map,也可以是map list。
"definition": {
"zh": "困惑,迷惘;(理智、感情等)混浊不清的状态",
"en": "A state of mental confusion or uncertainty.",
}, //释义字段,map里可以有多个键值对,但键值一定要是metadata.json中target_language列表里有的值
"tail": {
"synonym": "test",
"antonym": ["test", "test2"],
"related": ["test", "test2"],
"others": "",
}, //里面任意元素可以是string,也可以是list of string,现实在definition后面
"image": {
"image_file": "fog.jpg",
}, //可选
"note": {
"zh": "常用于 'in a fog' 结构,描述因疲倦或震惊而无法正常思考。",
}, //可选,注释部分,键名需要是语言名
"example": [
{
"usage": "take courage/guts", //例句的用法
"en": "He was walking around in a mental fog after the accident.",
"zh": "事故发生后,他整个人都陷入了意识模糊的状态中。",
"source": {
"cited_in": {
"title": "《太平广记》",
"volume": "卷九",
},
"head": "some",
"year": 2025, // 可选:年份(中文词典表示朝代)
"author": "Robert Louis", // 可选:作者
"title": "Mental States and Trauma", // 可选:书名
"publisher": "Health Press", // 可选:出版社
"page": "45-47", // 可选:页码
"edition": "2nd", // 可选:版次
"tail": "some",
}, //可选,例句来源。渲染格式:非中文 (年份) 作者. 书名. 出版社, 页码.;中文 朝代 · 作者 · 书名
"comment": {}, //结构和example相同
"audios": [
{
"region": "UK", // 可选,例句音频地区
"audio_file": "fog_ex1_uk.mp3",
},
], //可选,例句音频
},
{
"usage_group": "take (sb) sth (to do sth)", //一个例句用法中有多组例句
"example": [
{ "en": "Repairs take time to carry out." },
{
"en": "[It took](bold) a few minutes for his eyes to adjust to the dark.",
},
],
}, //特殊例句,里面包括一个usage_group名,和一个嵌套的example元素
{
"en": "[It takes](bold) courage to admit you are wrong.",
},
], //可选
"subsense": [
{
"index": "a",
"definition": {},
},
{
"index": "b",
"definition": {},
},
], //释义的子释义,格式与释义的格式相同
},
],
"sense_group": [
{
"group_name": "noun", //释义组的组名(可选,无则不渲染组名行)
"group_sub_name": "obsoleted sense", //释义组的副组名(可选,无则不渲染副组名行)
"sense": [{}, {}],
},
{
"sense": [{}, {}], // 无 group_name 和 group_sub_name 时,仅渲染 sense 列表
},
], //释义组
"child_xxxx": [
{
"headword": "someword1",
"pos": "adj",
"sense": [],
}, //以"child_xxxx"作为键名的元素,会被渲染为一个可折叠的标题为xxxx的组件,值里的字段支持使用和根节点相同的字段名,适用于不想单独被提取为entry的衍生词、习语等内容。
{ "headword": "someword2", "sense_group": {} },
],
"text": "any text", //在这里显示任意文本
"clob": "any text", //在这里显示任意文本,并且不会使用格式化文本渲染
}