How can I change the requirements for curing a villager?

My first question, is it even possible to change the requirements to cure a zombie villager (weakness effect and golden apple) through a datapack?

If it is possible, what kind of functions should I look into to change the requirements?

I'm still new to datapacks so their limitations are not entirely known to me, sorry if this looks like an obvious/dumb/frequently asked question.

Continue to help post