mortii / anki-morphs

A MorphMan fork rebuilt from the ground up with a focus on simplicity, performance, and a codebase with minimal technical debt.
https://mortii.github.io/anki-morphs/
Mozilla Public License 2.0
52 stars 7 forks source link

Add option to add already known words #109

Closed xyaman closed 7 months ago

xyaman commented 8 months ago

I like to keep a minimal number of decks in Anki, and I wish to have the flexibility of adding known words to the database without the necessity of associating them with a specific deck. Something similar to what Morphman does with its database manager.

Morphman database manager allows the creation of a database file from a text file. If it's named "external.db", Morphman will considers all those words as known. This way, I can remove cards that are already 0T o delete decks without loosing known cards and avoiding useless reviews.

Maybe adding a database manager is too much, but maybe a simple script or a guide to add known words from a text file to the main database (or to an external one) would be nice.

Vilhelm-Ian commented 8 months ago

Basically we can do what we already do with names.txt . Just not ignore the words

mortii commented 8 months ago

@xyaman Thanks for the suggestion! It's a good idea, I like it.

Basically we can do what we already do with names.txt . Just not ignore the words

True, it might be a little more complicated if we care about inflections though, then we would have to use a csv files in the same format as the frequency files.

mortii commented 8 months ago

I'm thinking we could have a "Export Known Morphs" feature, which creates a csv files in the same format as the frequency file, and then we can have another option to read said file when recalcing.

xyaman commented 8 months ago

Thanks for considering it! I think a csv is a very good idea.

mortii commented 7 months ago

Okay, my current thinking is that we should have a 'known_morphs' folder, which is basically identical to the 'frequency_files' folder--they both contain csv files with the morphs stored as tuples (lemma, inflection). The nice thing about this is that you could create frequency files from media you already know and just place them in the 'known_morphs' folder.

In the recalc tab in settings we have an option to read those files: Screenshot from 2024-01-10 10-52-47

The morph exporter dialog should have at least these two options: Screenshot from 2024-01-10 10-50-15

Any suggestions/feedback is welcome!

xyaman commented 7 months ago

I think its very good. It's looks flexible, easy to manipulate (just csv) and the settings are simple.

mortii commented 7 months ago

I have a working version, I now just need to update the guide then I'll release it.

mortii commented 7 months ago

Released in v0.15!

Let me know if you experience any bugs, or if you have any other suggestions :)

xyaman commented 7 months ago

It worked and no problems until now. Thanks! I'll let you know if I find bugs.

github-actions[bot] commented 6 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.