Giter Club home page Giter Club logo

anki-wiktionary's Introduction

Anki add-on to query words using Wiktionary data downloaded from https://kaikki.org

Usage

The add-on provides an interface to fill notes with defintions, example sentences, etc. The interface can either be accessed from a button in the editor, or via the Edit > Bulk-define from Wiktionary menu item in the browser for bulk operations on selected notes. You can also configure shortcuts from Tools > Add-ons.

You have to download the dictionary data you want for the add-on to work. For that, find your target language in https://kaikki.org/dictionary/ and download the JSON file containing all data listed at the bottom of the language page (which has a name like "kaikki.org-dictionary-Russian.json"). Then in Anki, go to Tools > Wiktionary -> Import a dictionary to import the dictionary.

Download

You can download the add-on from its AnkiWeb page: https://ankiweb.net/shared/info/2087444887

Changelog

See CHANGELOG.md for a list of changes.

Credit

The icons are taken from https://en.wiktionary.org/

Support & feature requests

Please post any questions, bug reports, or feature requests in the support page or the issue tracker.

If you want priority support for your feature/help request, I'm available for hire. You can get in touch from the aforementioned pages, via email or on Fiverr.

Support me

Consider supporting me if you like my work:

Buy Me A Coffee

I'm also available for freelance add-on development on Fiverr:

anki-wiktionary's People

Contributors

abdnh avatar s03311251 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

anki-wiktionary's Issues

Fetch specific parts of speech for homographs

When there exist multiple parts of speech for the same entry, only the part of speech appearing last in a file is dumped and usable for note generation. In such cases it would be good if one would be greeted with a prompt to select the desired part(s) of speech.

Tasks

  • Modify import process to dump all parts of speech, instead of overwriting
  • Add dialogue which appears when there exist multiple parts of speech, from which the user will select using a checkbox list

remove articles during lookup

Hi!

I'm currently using this addon to learn (modern) Greek. In principle this addon is a godsend (θεωδόρος) and it prevents me writing something very similar. But there are still some bugs.

In modern Greek, as in other languages like German, nouns are usually memorized including an article (cause that determines grammatical gender).
Unfortunately, the automatic lookup then doesn't work anymore. An example:

A card would state "η πλαζ" (the beach), but if one uses the wiktionary plugin to search for "η πλαζ" it would fail, while the search for "πλαζ" would be succesfull.

A similar thing can be observed when notes (for a good reason) are memorized together with some particle (like as/for/...) - the search than fails.

I guess these kinds of words are usually referred to as "stop words": https://en.wikipedia.org/wiki/Stop_word and luckily, there are high-quality lists available for basically every language.

On the other hand, we can't just blindly remove them, in case the note contains only the stopword.

So my proposition would be: For the lookup, we

  1. look for exactly that term
  2. if that fails, we remove stopwords and look again.

This will probably not catch every case out there, but for the time being it might be reasonable improvement.

Would you be willing to merge this kind of change?
It would probably involve

  • adding the functionality of finding/downloading a stopword list (can likely be fully automated) or loading a user-specified one,
  • modifying the lookup as described above.

I think I could get to it withing the next two weeks, then.

anki crashes when anki-wiktionary plugin

Hi,

I've observed that if anki-wiktionary cannot find a word while bulk-filing a single note, it throws a meaningful error.
However, if it used on multiple nodes and one of them fails, the anki in its entirety just crashes w/o further errors.

I'm not sure how much this is ankis fault or this plugin, but maybe the error handling in that case should be done more subtly?

I'm happy to file a bug at anki if you think this cannot reasonably be fixed within anki-wiktionary. I'm currently not involved deeply enough to figure it out myself. And maybe it is trivial and was just overlooked :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.