lod-anki is a command line tool that allows you to import data from the Luxembourger Dictionary Online (LOD) into Anki, a popular open-source flashcard program. With this library, you can create personalized flashcards from LOD dataset, enabling efficient learning and retention of information.
- Import data from LOD.lu into Anki decks.
- Map
noun
,verb
,preposition
,conjunction
,adjective
, andadverb
to words dataset. - Export words into Anki flashcards.
Install the command line, running the following command.
npm i -g lod-anki
- Download and extract the file.
- Navigate to the root folder where the zip file was extracted.
- Prepare your deck file (see below).
- Run
lod-anki export <deckFile>
.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request. Make sure to follow the existing code style and include appropriate tests.
This project is licensed under the GPL v3 License.
The deck file is a JSON file, with the following schema:
- name: It is the name of the deck, shown in Anki. It will be concatenated with the language, to avoid duplicity, if you want to export multiple languages;
- fileName: It is the file name. It will be concatenated with the language, to avoid duplicity;
- flashcards: The collection of words in Luxembourgish you want to export;
- languages: The collection of languages you want to export to. The possible values are: ALL (German), EN (English), FR (French), and PO (Portuguese);
- types: The collection of word types you want to export.
lod-anki
will filter the flashcards (or words), and export only the ones matching the types in this list. This field is optional.noun
,verb
,preposition
,conjunction
,adjective
, andadverb
are supported by this tool.
Below you can see an example:
{
"name": "Greeting in Luxembourgish",
"fileName": "greeting_in_luxembourgish",
"flashcards": [
"Äddi",
"Awar",
"Awuer",
"Bonjour",
"Moien"
],
"languages": [
"ALL",
"EN",
"FR",
"PO"
]
}
When building the deck, put the words in lowercase. But if it is a noun, capitalize the first character, as it is in Luxembourgish.