The doll, which wore eyeglass frames, was called "the educated doll" because it was able to speak foreign languages when its records were changed.
The doll was called "the educated doll". This was to speak foreign languages. It was able. Its records were changed. The doll wore eyeglass frames.