Text this: Optimization of the structure of the learning process under the given constraints