JPDB.io does something like this for Japanese. Not sure you can really import books, but it basically combines some kind of parser in with a dictionary API, example sentence corpus, and its own spaced repetition system.
Gotta be something along the line out there for most languages, but I can't say I know of the tools. Honestly, the breaking-down-into-a base-word part of it is probably in the dictionary's domain. If you give it a conjugated verb it should usually be able to tell. But then some ambiguities need context, not sure how to account for that.
AnkiConnect lets you tap into the Anki APIs, Wiktionary or (from a quick search) Collins should have a dictionary API available for French-English. If the dictionary APIs are good then you could probably get pretty far with basic sentence parsing.
But yeah, feels like there's gotta be something ready made for it, wish I knew and could point you in a direction.