Honestly, I don’t know enough about what makes something a Leech, and based on what I’ve read in a few threads, it seems people disagree on the specifics.
But it’s actually going to be very easy to add a Leech criteria for generating a quiz. You’d simply register a function with the Open Framework:
// Tell the Open Framework about our function for selecting specific Wanikani items.
wkof.ItemData.registry.sources.wk_items.filters['my_leech_script'] = {
type: 'number',
default: 0.95, //or whatever
label: 'Leech Pro™ Threshold',
filter_func: my_leech_filter_function,
hover_tip: 'Select items that exceed the specified leech threshold',
};
// Called for each Wanikani item. Return 'true' if we want to quiz on this item.
function my_leech_filter_function(filter_value, item) {
// TODO: Make a function to calculate leech value for this item
var item_leech_value = calculate_leech_value(item);
var threshold = filter_value;
if (item_leech_value >= threshold)
return true;
else
return false;
}
The code above produces this in the Quiz Settings window: