Duolingo has been embedding artificial intelligence as an online educational tool for learning foreign languages, collaborating with OpenAI since 2022.