Code for Types/Tokens experiment