Duolingo Inc. has fired 10 percent of its contract workers. The company is using AI for tasks such as text,…