Changing Text to Text Variable programmatically?

My project has a a lot of Texts that I would like to update to Text Variant. I happen to have an external file with all the copy that I could upload into Variables with some plugin (kudos to everyone who has created them). So far so good.

However, is there a non-manual way or plugin that would “upgrade” existing Text to Text Variable if the copy matches 100%. Changing them manually, one-by-one doe not seem to be very appealing :slight_smile: