Original sentence: By the end of the Soviet era, there was a real threat to the very existence of the Ukrainian language in the Ukrainian SSR.The number of Ukrainian speakers was declining from generation to generation.This generally comes at the expense of Russian, which was often the language of administration during the periods of rule from Moscow.This is even done in areas which are largely Russian speaking
Edited sentence: By the end of the Soviet era, there was a real threat to the very existence of the Ukrainian language in the Ukrainian republic of USSR.The number of Ukrainian speakers was diminishing from generation to generation.This generally comes at the expense of Russian, which was often imposed on Ukrainians throughout history.This is even done in areas, which are largely Russian speaking