I use Anki for my own spaced repetition but I find myself often recognizing a grammar card not because I think a have a great understanding of the grammar being used but more because I recognized a few specific kanji so I know which specific example it's giving me.
Do you guys know if it's possible with Anki to feed it something like a template sentence and then a list of acceptable nouns, verbs, adverbs, etc to swap in randomly? I'd like to make it harder to just memorize a card and instead have to think about everything in-between those randomized parts of speech.