The aim of the proposed research is to develop an algorithm for generating educational (linguodidactic) content for popular learning management systems based on corpus data. The scientific novelty lies in the fact that for the first time, a linguodidactic component is added to the original author’s concept of the method for generating a balanced linguistic corpus, implemented on the general principles of maximum automation and universality of application. During the research, the structures of LMS Moodle backup files were studied, a software module was developed for converting data from the author’s balanced linguistic corpus with morphological markup into XML files, which were imported and tested for integrity and correctness in terms of solving the posed linguodidactic task. As a result, it was proved that the used linguistic corpus has a high linguodidactic potential, the created algorithm shows good results, in this case, for generating test or training tasks in German, and can be expanded to material from other languages, the support of which is provided by the software tool – the corpus generator.