Skip to content
/ IAT Public

An elegant full stack implementation of Implicit Association Test (IAT).

License

Notifications You must be signed in to change notification settings

cmsax/IAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IAT: Implicit Association Test

Netlify Status

A full stack project for Implicit Association Test, with SPA + Serverless backend + Analysis.

Please give this project a star if it helps you. ❤️

Introduction

Implicit Association Test:

The implicit-association test (IAT) is a measure within social psychology designed to detect the strength of a person's subconscious association between mental representations of objects (concepts) in memory. It is commonly applied to assess implicit stereotypes held by test subjects, such as unconsciously associating stereotypically black names with words consistent with black stereotypes. The test's format is highly versatile, and has been used to investigate biases in racial groups, gender, sexuality, age, and religion, as well as assessing self-esteem.

This IAT is inspired by Project Implicit.

Features

  • Super fast for deployment and development
  • Extensible
    • add any number of tests
  • Reliable
    • image preloading
    • user action log
    • user leave confirmation
    • time sensitive
    • minimum interference

Development

Serverless

This project uses Tencent cloud function (aka. Tencent SCF), the main logic is defined in /serverless/iat/main.py.

SPA

This project basically uses Vue + Typescript + Element-UI.

Start Up 🎈

A mock server is needed to run the SPA without backend. Besides, npm and Node.js is required, this project is also yarn compatible.

This project use json-server as a mock API server. To run the SPA, follow the instructions below:

  • Install Node.js and npm Click here to know How to install Node.js and npm?
  • Install json-server by running command: npm install -g json-server
  • Run command node spa/iat/mock/server.js to start local mock RESTful API server
  • Run npm install in project root directory to install project dependencies
  • Run npm serve to run SPA and see what it looks like in the browser

Feel free to open an issue if you need help.

Test Cases

Test Case Interfaces

Each single test can be an image or a word.

export interface SingleTest {
  testDescription: string;
  positiveOrNegative: "positive" | "negative";
  isImage: boolean;
  imageURL?: string;
}

All test interfaces are defined in /spa/iat/src/interfaces/test.ts.

Write Your Own Test Cases

Write your own test packs according to TestPack interface, in /spa/iat/src/data/index.ts like:

{
  instruction: {
    title: "Part 1: Normal Test",
    cmds: [
      "Instruction 1 lorem ipsum vanilla ipsum lorem",
      "Instruction 2 lorem ipsum vanilla ipsum lorem",
      "",
      "Instruction 3 lorem ipsum vanilla ipsum lorem",
      "Instruction 4 lorem ipsum vanilla ipsum lorem",
      "Instruction 5 lorem ipsum vanilla ipsum lorem",
      "",
    ]
  },
  positiveTitle: "Happy",
  negativeTitle: "Unhappy",
  // Shuffle() is defined in /spa/iat/src/core/index.ts
  testCases: Shuffle([(testCase1 as SingleTest), (testCase2 as SingleTest)])
};

Screenshots

Main Test

Test instruction: sc test instruction

Single test of image: sc test of image

Single test of word: sc test of word

Other Pages

Homepage: sc research gate

Test welcome & user basic information form: sc begin test

Test result page: sc test result

Live Demo