This repository contains JSON dictionaries of multiple languages for use in the OpenCrossword project. The words are formatted for crossword-making in different languages.
- ./raw-dictionaries contains raw Aspell language dumps
- ./dictionaries contains formatted JSON dictionaries
- Dump a dictionary from GNU Aspell
where $LANGUAGE_CODE is the ISO 639-1 code of the language you want to generate a dictionary for.
aspell -d $LANGUAGE_CODE dump master | aspell -l en expand > $LANGUAGE_CODE.txt
- Run the generate.py script
python3 gen_dict.py [Raw dictionary path] [Result dictionary path]
The dictionaries are simple JSON translations of GNU Aspell language dumps. See GNU Aspell for more information.