johnfactotum / quick-lookup

Simple GTK dictionary application powered by Wiktionary
GNU General Public License v3.0
93 stars 8 forks source link

Some Words: "No definitions found" #40

Open LSeelig opened 7 months ago

LSeelig commented 7 months ago

Specifically, I have tried 'art' and 'in'. Many others take much longer than I would expect to load.

johnfactotum commented 7 months ago

The problem with "art" and "in" is that the Wiktionary API puts translingual definitions under en together with English definitions.

Currently, when matching by language name, it only checks the first entry. Since here the first entry has "Translingual" and not "English", it doesn't match.

You can workaround this by setting the language to "en" instead of "English".

LSeelig commented 7 months ago

The problem with "art" and "in" is that the Wiktionary API puts translingual definitions under en together with English definitions.

Currently, when matching by language name, it only checks the first entry. Since here the first entry has "Translingual" and not "English", it doesn't match.

You can workaround this by setting the language to "en" instead of "English".

Thank you. Somehow, it also made loading 10x faster.