migaku-wr-dict
v1.1.3
Published
Generate Migaku Dictionaries with WordReference definitions
Downloads
2
Readme
migaku-wr-dict
Generate Migaku Dictionaries with WordReference definitions using the frequency lists from hermitdave/FrequencyWords.
Please, report any issues and I will try to fix them as soon as possible.
Usage
npx migaku-wr-dict
Examples
- Show help text
npx migaku-wr-dict --help
- Generate English to Arabic dictionary with all English words (over 1.6 million, not recommended)
npx migaku-wr-dict -f en -t ar
- Generate English to Arabic dictionary with 100.000 most used English words
npx migaku-wr-dict -f en -t ar -n 100000
- Generate English to Arabic dictionary with 100.000 most used English words to specific output file
npx migaku-wr-dict -f en -t ar -n 100000 -o /path/to/dict/migaku_wr_dict_enar
- Generate English to Arabic dictionary with 100.000 most used words and save data for future use
npx migaku-wr-dict -f en -t ar -n 100000 -s migaku-wr-data
- Generate English to Arabic dictionary from saved WordReference data
npx migaku-wr-dict -f en -t ar -n 100000 -d migaku-wr-data
- Generate English to Arabic with 100.000 most used words and chunk size of 50 (not recommended)
npx migaku-wr-dict -f en -t ar -n 100000 -c 50
- Generate English to Arabic from specific word frequency list
npx migaku-wr-dict -f en -t ar -w frequency.txt
- Generate English to Arabic with 100.000 most used words and append specific word frequency list
npx migaku-wr-dict -f en -t ar -n 100000 -a frequency.txt
- Get WordReference JSON data for an specific word "rainbow"
npx migaku-wr-dict -f en -t ar -g rainbow
Installation
After generating your <dictionary>.zip
file you must extract it on your Migaku Dictionary user_files
language folder, if installed correctly you should have this structure:
user_files/dictionaries/header.csv
(optional)user_files/dictionaries/<language>/frequency.json
user_files/dictionaries/<language>/conjugations.json
user_files/dictionaries/<language>/<dictionary>/dictionary.json
Replace <language>
by your desired language like "English", "German", "Arabic", etc.
Replace <dictionary>
by your dictionary name for example migaku_wr_dict_enar
If you install the dictionary before the frequency file you will need to remove the dictionary and reimport it for the frequency to be applied.
The conjugation file might need to be installed using the "Install Conjugation Data From File" option on Migaku Dictionary Settings.
License
MIT License
Copyright (c) 2020 Guilherme Caulada (Sighmir)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.