Code Monkey home page Code Monkey logo

anki-wiktionary's Issues

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.

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

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.