Anki add-on: Make/grade Portuguese cards that are a part of a larger sentence

This is a work in progress. I have lots of portuguese cards from various sources. A lot of the cards are sentences, and sometimes I forget one work in the sentence. Instead of marking the whole card wrong, I'd rather mark just that word wrong. So this is designed to search the database and find the individual words. The grading is adapted from "AJT Card Management - Reset, Learn, and Grade cards from the Anki Browser" (https://ankiweb.net/shared/info/1021636467). I used google Gemini to make this. Use at your own risk.