Speaking as a total ignorant from a coding perspective. But I guess that wouldn’t be the hard part, considering that most of Duolinguo is just boxes and text inputs. How difficult it is to create a database of competent linguists with an efficient training who can progressively enhance your understanding of languages?
According to some guy on Youtube, that’s less of a learning method thing and more of a getting over a basic threshold of competency thing. I forget exactly which level he said it was, but the claim was that if you reach at least B2(?) you won’t forget it anymore.