Duolingo laid off 10 percent of its contractors because of AI.