FooSoft / yomichan

Japanese pop-up dictionary extension for Chrome and Firefox.
https://foosoft.net/projects/yomichan
Other
1.06k stars 213 forks source link

Autofill anki model in fields that have the same name as the marker #495

Closed Pintliz closed 3 years ago

Pintliz commented 4 years ago

image

This would save a lot of time, I'm not sure when the autofill should be triggered though. Maybe whenever a new model is selected or manually with an autofill button.

toasted-nutbread commented 4 years ago

I suppose it's possible to do this, but it's not straightforward. You personally may have field names which match the Yomichan markers, but this is not necessarily the case for all users.

However, there is probably some heuristic methods that can be used to autofill some of the fields. For example, there is already a recommendation that the first field is {expression} or {character}. Additionally, there are some assumptions that could be made about some field names with common words. I.e. a field with "audio" or "sound" in the name is assigned to {audio}.