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
55 stars 8 forks source link

Note Filters & Extra Fields not match #45

Closed HQYang1979 closed 10 months ago

HQYang1979 commented 10 months ago

image I want to calc both the Word and Example fields of the same card. but I cannot highlight both Word and Example on the Extra Fields, right? image

HQYang1979 commented 10 months ago

And a terrible thing happens, after the setting above, one of the sentence field is replaced by the focus field, the contents on the sentence field are lost, fortunately I made a backup image

mortii commented 10 months ago

Thank goodness you made a backup!

This is another result of having a bad guide and unintuitive options, sorry! I'm so deeply familiar with the intricacies of the features it often does not cross my mind that they should be clarified. I'll try to explain it better:

Calculated difficulty

Screenshot from 2023-11-17 16-10-45

The note filter: field, in my case Japanese, is the field that ankimorphs extracts text from, which is then analyzed. The card is then sorted based on the difficulty of that analyzed text.

If I were to do this:

Screenshot from 2023-11-17 16-28-42

then all the cards would first get analyzed and sorted based on the text in the Japanese field. Then all the same cards would again get analyzed and sorted based on the text in the unknown-morphs field, making the first note filter obsolete.

So all this is to say: don't use different note-filter: fields for the same cards, it will make one or more of the note filters obsolete.

Highlighting

Screenshot from 2023-11-17 16-49-53

The selected extra fields: highlighted field, in my case highlighted, takes the extracted and analyzed text from note filter: field, and places a highlighted version of that text into the selected extra fields: highlighted field. In my case it takes the text from Japanese, highlights it, and places in the highlighted field.

Screenshot from 2023-11-17 17-05-21

The selected extra fields: highlighted field always gets its content overwritten on recalc, so this needs to be a seperate and dedicated field, not a field that already has the text you want to analyze.

Let me know if any of that made sense or if you want me to phrase it differently.

Also, if you have any suggestions for making things more intuitive please let me know, that has been one of my biggest struggles with this project.

PS: i noticed that that I failed to upload the latest version to ankiweb. I just uploaded 0.5.3-alpha now.

HQYang1979 commented 10 months ago

Thank you for the answer! It's just that morphman can analyze multiple fields at the same time.

aleksejrs commented 10 months ago

morphman can analyze multiple fields at the same time.

I used that all the time. I have lots of mostly pre-MorphMan cloze cards that consist of multiple Text fields, and cards with context in a separate field, and alt text for image occlusion, and some comparison cards where two fields have equal weight.

mortii commented 10 months ago

Thank you for the answer! It's just that morphman can analyze multiple fields at the same time.

One of the main reasons I changed it to only be one field is that we could now have a drop down menu of the fields instead of typing them manually. I would always misspell the field name or miss an upper-case letter and the entire filter would then be useless.

I think if you want to analyze multiple fields at the same time, the card probably fails the minimum information principle, and you should probably change it.

Another advantage is that the "extra fields" options get massively simplified; the 'focus morph' field (now named 'unknowns') is entirely optional as a result, and the highlighting requires less setup.

mortii commented 10 months ago

I updated the following docs:

Let me know if they are still unclear, or if there are other parts of the docs that should be improved!

aleksejrs commented 10 months ago

Thank you for the answer! It's just that morphman can analyze multiple fields at the same time.

One of the main reasons I changed it to only be one field is that we could now have a drop down menu of the fields instead of typing them manually. I would always misspell the field name or miss an upper-case letter and the entire filter would then be useless.

IIRC, such typos cause an error in MorphMan, although maybe the error happens too late.

I think if you want to analyze multiple fields at the same time, the card probably fails the minimum information principle, and you should probably change it.

You are assuming that all Basic cards are already "fully known field" (not analyzed) + "not fully known field" (analyzed).

I have cards like "[picture] scarlet or crimson?" "[picture] crimson or scarlet?" made out of the same note. Although those kind of cards better come before the cards about the colors themselves, so it may be a bad example, because the add-on can't do anything about it.

I used to make cards like "X is father of [ ]", "X is [ ] of Y", "Y is son of [ ]", "Y is [ ] of X".

Then there are cards with questions and answers. The full article about the minimum information principle has those. The question may be easy if you make the cards yourself right before introducing them, but not if you make them in advance or download a pre-made deck (which is also likely to have a much more complex note type than the above, though I would split it).

Also, while cards mixing languages may be good for starting with a language, and are what you get from using Duolingo, they will make you mix languages and think in the wrong language.

Vilhelm-Ian commented 10 months ago

but why should they be on the same note. I just create seperate cards

aleksejrs commented 10 months ago

but why should they be on the same note. I just create seperate cards

Have you ever edited a Basic note type to add more fields and card templates?

Vilhelm-Ian commented 10 months ago

Yes. If you can automate it through having multiple templates. You can automate it through a csv also

aleksejrs commented 10 months ago

If you make separate cards, they will not be buried as siblings, because the add-ons for that have not been updated for the V3 scheduler.

mortii commented 10 months ago

Almost all my cards are straightforward in nature, so it is entirely possible that I have missed important use-cases. Let's discuss this further here: #67

mortii commented 10 months ago

Having multiple input fields definitely has valid use cases. That being said I think those use cases are too narrow for the complexity it will bring to the average user, but most of all the complexity it will add to the code base.

I think one of the biggest problems MorphMan has is that it is too complicated, and I don't want to the same thing to happen with AnkiMorphs.

I really value honest and constructive feedback and discussions--having your ideas and solutions challenged is crucial to finding the best antifragile ideas and solutions.

Thanks for providing that feedback, and apologies for not being willing to implement the feature :pray:

Originally posted by @mortii in https://github.com/mortii/anki-morphs/discussions/67#discussioncomment-7641232

I'll probably address this in the FAQs too. Sorry!