Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for an alternate frequency output #164

Open
pedipanol opened this issue Jun 18, 2023 · 5 comments
Open

Option for an alternate frequency output #164

pedipanol opened this issue Jun 18, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@pedipanol
Copy link

pedipanol commented Jun 18, 2023

I use a frequency sorting setup by Marv that involves a handlebar in yomichan to remove the dictionary name of the output and output only the highest priority dictionary's value (and adds a 999999 value if no frequency is found). With this all new words in Anki will be the ones you mined that have the highest frequency within the dictionary you're using.

https://github.com/MarvNC/JP-Resources#sorting-mined-anki-cards-by-frequency

For now I just backfill them later, but an option for Memento to do that natively would be awesome.

That's pretty much the only nitpick I've had in using the program in the past week, keep up the great work!

@ripose-jp
Copy link
Owner

ripose-jp commented Jun 18, 2023

While there is a request for Handlebar support #79 and it is possible to implement via MuJS, the effort it would take to implement versus the benefit it would add is too small for me to really be too be interested at the moment. If this were to get implemented, I'd rather it be through the extended marker syntax idea kicked around in #143.

Just to make sure I understand correctly, you want to only add the value of the first frequency dictionary without the name?

@ripose-jp ripose-jp added the enhancement New feature or request label Jun 18, 2023
@pedipanol
Copy link
Author

Yeah, it doesn't need to be a full implementation of the handlebar, if it can output just the first dicionary's value it would be enough for me!

@snfergy
Copy link

snfergy commented Mar 6, 2024

Is this still being considered?

@ripose-jp
Copy link
Owner

If it's not closed, I believe it should be implemented. I want this to use the marker syntax described in #143, so that would have to come first. I haven't worked much on feature requests in the last few years since I they don't affect my use case and I'm busier now than when I was a student.

@BigBoyBarney
Copy link

BigBoyBarney commented Mar 8, 2024

I use a frequency sorting setup by Marv that involves a handlebar in yomichan to remove the dictionary name of the output and output only the highest priority dictionary's value (and adds a 999999 value if no frequency is found). With this all new words in Anki will be the ones you mined that have the highest frequency within the dictionary you're using.

I had this exact issue, which I mentioned in #202 as well.

As a temporary solution, I wrote a quick Anki add-on to trim your frequency field to the lowest value before inserting a card.
https://codeberg.org/Sylphrena/AnkiFieldTrimmer

It essentially mimics what the handlebars do in yomichan. Let me know if you need help setting it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants