Skip to main content

FNAME

A Face–Name–Occupation associative memory task. Participants learn face–name and face–occupation pairs, then must infer name↔occupation associations without seeing faces, and finally recognize correct pairings after a configurable delay.

Example URL commands​

# Plain launch (debug mode: results shown on-screen)
https://andreifoldes.github.io/m2c2-assessments/assessments/fname/

# Suppress the completion screen
https://andreifoldes.github.io/m2c2-assessments/assessments/fname/?show_end_screen=false

# With camera recording
https://andreifoldes.github.io/m2c2-assessments/assessments/fname/?webcam=1

# With eye tracking
https://andreifoldes.github.io/m2c2-assessments/assessments/fname/?webgazer=1

# Customized assessment parameters (values shown are the defaults)
https://andreifoldes.github.io/m2c2-assessments/assessments/fname/?number_of_pairs=6&number_of_distractors=2&learning_duration_ms=5000

# Production: submit results to your server
https://andreifoldes.github.io/m2c2-assessments/assessments/fname/?token=<TOKEN>&callback_url=<CALLBACK_URL>

Session parameters​

Handled by the launch wrapper (results submission and optional sensors), not by the assessment itself.

ParameterTypeDefaultDescription
callback_urlstring—URL to POST results to when the assessment ends.
face_sourcestringbundledSet to api to fetch random faces from the 100k-faces API instead of using the bundled curated face set.
number_of_faces_to_prefetchnumber—How many face images to prefetch before the task starts (only relevant with face_source=api).
pidstring—Optional participant identifier. Echoed verbatim into the results: top-level pid next to token in the callback POST, inside data, and in the embed-mode postMessage. Useful when the callback endpoint does not mint per-participant tokens, or to link multi-session designs (e.g. FNAME-Pairs learning vs. delayed) from the URL alone.
show_end_screenstringtrueSet to false or 0 to suppress the green "Assessment Complete" screen after results are submitted. A Telegram WebView closes immediately instead of showing the confirmation.
tokenstring—Authentication token for results submission. When absent (along with callback_url), the assessment runs in debug mode and displays results on-screen instead of submitting them.
webcamstring—Set to 1 or true to enable optional camera recording. Participants see a consent prompt; if they accept, the front camera records and the video is saved locally to their device at session end.
webgazerstring—Set to 1 or true to enable browser-based eye tracking via WebGazer.js. Participants see a consent prompt, then a 5-point gaze calibration. Gaze coordinates are recorded throughout the task and exported as a CSV file at session end. Can be combined with webcam=1.

Assessment parameters​

Parameters marked URL can be set as URL query parameters; the rest are fixed deployment defaults.

ParameterTypeDefaultURLDescription
number_of_pairsnumber6✅Number of face-name-occupation triplets to learn
number_of_distractorsnumber2✅Number of wrong options in inference/recognition phases
learning_duration_msnumber5000✅Display duration per item in learning phase (ms)
delay_secondsnumber10✅Countdown delay between inference and recognition (s)
show_tutorialbooleantrue✅Show instruction screens before each phase
grayscale_facesbooleantrue✅Display face images in grayscale to reduce skin tone bias
face_image_poolstring[]—JSON array of {id, dataUrl} objects for face images (set by index.js after pre-fetch)
show_trials_complete_scenebooleanfalse (site override; package default true)—Show completion screen at end

Generated from assessments/fname/fname.js and assessments/fname/index.js. Do not edit by hand.