{"id":21017085,"url":"https://github.com/imakebotsforyou/convert-to-jp-jp-anki","last_synced_at":"2026-04-22T12:38:12.191Z","repository":{"id":258696864,"uuid":"874422929","full_name":"IMakeBotsForYou/convert-to-jp-jp-anki","owner":"IMakeBotsForYou","description":"Convert anki decks to JP-JP","archived":false,"fork":false,"pushed_at":"2024-10-17T20:44:13.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T12:22:58.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IMakeBotsForYou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-17T19:54:25.000Z","updated_at":"2024-10-17T20:44:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"494b7d48-fafb-4963-8a3f-2e5a7ba433ee","html_url":"https://github.com/IMakeBotsForYou/convert-to-jp-jp-anki","commit_stats":null,"previous_names":["imakebotsforyou/convert-to-jp-jp-anki"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMakeBotsForYou%2Fconvert-to-jp-jp-anki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMakeBotsForYou%2Fconvert-to-jp-jp-anki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMakeBotsForYou%2Fconvert-to-jp-jp-anki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IMakeBotsForYou%2Fconvert-to-jp-jp-anki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IMakeBotsForYou","download_url":"https://codeload.github.com/IMakeBotsForYou/convert-to-jp-jp-anki/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243447632,"owners_count":20292452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T10:17:49.237Z","updated_at":"2025-12-28T12:35:14.472Z","avatar_url":"https://github.com/IMakeBotsForYou.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anki Deck Monolingual Conversion Script\n\nThis script processes Anki decks by converting bilingual definitions into monolingual ones using various Japanese dictionaries. It extracts definitions from dictionary files and applies them to words in the Anki deck.\n\n## Table of Contents\n1. [Overview](#overview)\n2. [Usage](#usage)\n3. [Dictionaries](#dictionaries)\n\n## Overview\n\nThe script processes an Anki `.apkg` deck by:\n- Exporting it to an `.xlsx` format.\n- Cleaning and normalizing word entries.\n- Adding definitions from Japanese dictionaries.\n- Saving the processed data back into an `.xlsx` file and converting it into a `.csv`.\n\n## Usage\n\nTo run the script, call the `change_to_monolingual(deck_name)` function, passing in the name of the Anki deck (without the `.apkg` extension). For example:\n\n```python\nchange_to_monolingual(\"N2\")\n```\n\nThis will convert the `N2.apkg` deck and generate a new `[FIXED] N2.csv` file with monolingual definitions.\n\n### Make sure to check what fields are in your decks\nThis code was made to be as general as possible, but still relies on some hardcoded variables. Check out the code before running.\n\n\n## Dictionaries\n\nThe following dictionaries are used for definition extraction. They should be stored as JSON files in the specified directories, and their structure should follow a specific pattern.\n\n1. **旺文社国語辞典 第十一版** (`6. 旺文社国語辞典 第十一版`)\n2. **大辞泉** (`1. 大辞泉`)\n3. **実用日本語表現辞典** (`2. 実用日本語表現辞典`)\n4. **使い方の分かる 類語例解辞典** (`4. 使い方の分かる 類語例解辞典`)\n5. **故事・ことわざ・慣用句オンライン** (`5. 故事・ことわざ・慣用句オンライン`)\n\nEach dictionary file (e.g., `term_bank_1.json`, `term_bank_2.json`) contains word entries and their respective definitions. The script processes these entries to build a comprehensive word-definition map in the `big_data` dictionary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimakebotsforyou%2Fconvert-to-jp-jp-anki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimakebotsforyou%2Fconvert-to-jp-jp-anki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimakebotsforyou%2Fconvert-to-jp-jp-anki/lists"}