analysis scripts for language cog lab