Skip to content

cedict-json individual json data of dictionary term according to simplified terms in cedict

Notifications You must be signed in to change notification settings

Payiz-2020/cedict-json

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

cedict-json

cedict-json individual json data of dictionary term according to simplified terms.

generated using following script:

with open('cedict.json', encoding='utf8') as json_file:
    data = json.load(json_file)
    for x in range(0, 114852):
        print(data[x]['simplified'])
        name = data[x]['simplified']
        name += '.json'
        
        with open(name, "w", encoding='utf8') as f:
            json.dump(data[x],f,indent=4,sort_keys=True, ensure_ascii=False)

cedict.json file generated using following:

https://github.com/kevb34ns/CEDICT2JSON

To get meaning of any term from cedict-json data

Example 1

https://cdn.jsdelivr.net/gh/<your-username>/cedict-json/data/我.json

Fork this and then,
your-username is your github username

Fetched data

{
    "definitions": [
        "I",
        "my"
    ],
    "pinyin": "wo3",
    "simplified": "我",
    "traditional": "我"
}

Example 2

https://cdn.jsdelivr.net/gh/infinyte7/cedict-json/data/知道.json

Fetched data

{
    "definitions": [
        "to know",
        "also pr. [zhi1 dao5]"
    ],
    "pinyin": "zhi1 dao4",
    "simplified": "知道",
    "traditional": "知道"
}

License

cedict chinese dictionary

Creative Commons Attribution-Share Alike 4.0 License
https://cc-cedict.org/wiki/

cedict-json

Infinyte7
Creative Commons Attribution-Share Alike 4.0 License

About

cedict-json individual json data of dictionary term according to simplified terms in cedict

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published