This repository contains a JSON and XML to SQLite converter scripts & prebuilt SQLite dictionaries using the KRDict dictionary from the Korean Language Institute.
The simplified JSON extractions (data.json) from the minidictionaries are made by RicBent
The full versions can be downloaded directly from https://krdict.korean.go.kr/download/downloadPopup
There is a problem in the current dictionary downloads, the zip containing JSON files includes a 0 bytes entry (10_5000_20251119.json) The originin of the problem can be due to a malformation of the original XML file 10_5000_20251119.xml also available in the current downloads (mismatched tag: line 573053, column 5 - closing tag is missing in line 572998), adding the closing tag seems to avoid parsers abruptly ending processing the data.
I will include the fixed XML version on the repo for now (xmldict) and also added a xml to sqlite parser
Modify:
if name == "main": json_folder_to_sqlite( folder_path="./fullDict",<-- Origin files path db_path="english.db", <-- name for the generated DB target_language="영어" <--Selected language (in korean) )
RUN: python/py json_to_sqlite.py
Modify:
if name == "main": xml_to_sqlite( folder_path="./xmldict", db_path="spanish_from_xml.db", target_language="스페인어" )
RUN: python/py xml_to_sqlite.py
RUN: node buildDictionaryDB.js