[Userscript] Leech training

Now I’m thinking about starting grammar by level 20-25 I considered to star a bit later but I see it’s recommended to start earlier.

I’ve already booked Taekin and Bunpro to tackle that matter. :muscle:t3:

I can also recommend the 4500 Sentences and Particles In Action books.

1 Like

if you’re using bunpro you don’t really need to wait. the wait makes a lot more sense if you want to learn grammar by reading.

1 Like

is it possible to remove items from the leach queue when they’re one month away from being burned?

Unfortunately, not at the moment. Good idea, though, as I’ve occasionally burned something that I only remembered because of leeches.

1 Like

the more i think about this, this shouldn’t work all api calls to heroku fails because of CORS :expressionless:

Sorry, are you saying that it’s not working for you, or that you don’t understand why it works?

no it works fine, just can’t figure out how. btw is the server opensource?i really want to limit the time an item can be in the queue.

It is indeed! The version running now is a fork of the original after it stopped working: https://github.com/chooban/wanikanitools-golang

I’ve been meaning to rewrite it for a while now, you’d think I’d have found time in lockdown! :smiley:

1 Like

what happens if we redefine this in leech.go

type LeechLessonItem struct {
	Name            string     `json:"name"`
	SubjectType     string     `json:"type"`
	TrainType       string     `json:"train_type"`
	CorrectAnswers  []string   `json:"correct_answers"`
	TryAgainAnswers []string   `json:"try_again_answers"`
	Leech           LeechTrain `json:"leech"`
	SrsStage        int		   `json:"srs_stage"`
}

and this part in main.go

		item := LeechLessonItem{
			Name:            leech.Name,
			SubjectType:     leech.SubjectType,
			TrainType:       leech.WorstType,
			CorrectAnswers:  correctAnswers,
			TryAgainAnswers: tryAgainAnswers,
			SrsStage:        leech.SrsStage}

? i can’t get the code to run,
it says {"error":"pq: relation \"leech_train\" does not exist"}
this way it’s possible to filter based on srs stage

Apologies for the late response. I’ve been rewriting the server so that I understand it more and have more control over it. The idea is that you’ll be able to alter more of the parameters for the leeches and lessons. e.g. you can control the score above which something is considered to be a leech.

When you say filter by SRS stage, is this to do with the lessons? As in, “don’t show me anything above/below stage X?”

2 Likes

that’s great

yes. i was thinking not doing leech training on the last srs interval might be a good idea.

it would also be nice to filter by time left. so instead of making lessons available for a card when 50% of the srs interval has passed, make it only available from 45% to 55%, this way if you don’t do a card it’ll just go away instead of waiting at the end of the pile. This will make starting using the script much easier since you won’t have this back lock of cards that you might burn tomorrow.