From your last question, I assume you want to replicate the functionality of Lingua for MODX3.
I tried to install the current version of Lingua on MODX3 and although it throws some errors during the installation, most of the functionality still seems to work.
So it’s probably easier to make some fixes to Lingua than to program something entirely new.