Complex sentence: The doll, which wore eyeglass frames, was called "the educated doll" because it was able to speak foreign languages when its records were changed.
Split into simpler sentences: The doll, sometimes referred to as the "educated doll", wore eyeglass frames. The "educated" moniker was given to the doll because it was able to "speak" foreign languages when its records were changed.