This addon allows to look for and add Spanish definition(s) for a word as front side with the word, examples and conjugations if it’s a verb on the backside.
Instructions:
Type the word in the front side and either click on the DLE icon or press the “ctrl+alt+e”(configurable) hotkey.
Internally this uses pyrae(pyrae · PyPI) package to fetch the definition from dle.rae.es.
I have not worked on this one for a while now and don’t actually use it anymore as I found the definitions from DLE too complicated to be viable for flash cards.
I think it’s the best I remove this add-on to save people time trying it out.
From the error message you posted (thanks for that!) I think it looks like the issue is in the library I was using to read from DLE, my guess is DLE changed it’s API and I’d need to use a different library or roll out my own because pyrae seems to not have been updated since 2021…
My current approach is actually using perplexity with a custom prompt to generate the flash cards.
I do this in bulk, i.e. I write down all the new words in a file during a lesson and then feed the whole list into the chat window, it gives me back a list of CSV rows which I then import in Anki with it’s CSV importer.
I am OK with this “manual” process, I don’t know if writing another add-on would be worth it…
For what it’s worth here is the prompt I use, I just append the list of words at the end:
Para las siguientes palabras escribe la definición corta, la palabra, traducion en ingles y un ejemplo corto en espanol. El formato:
¨definicion¨;¨palabra en minuscules¨;¨ejemplo en espanol, traduccion en ingles¨
Palabras: