This repo contains code and data (in the code) that support the simulation of the research article Transformability, Generalizability, but Limited Diffusibility: Comparing Global vs. Task-Specific Language Representations in Deep Neural Networks (Jiang, Dale & Lu, 2023)