# Data dictionary (bilingual EN/ES) ## Session and language | Field | Location | Description | |-------|----------|-------------| | `session.config['language']` | Session | `'en'` or `'es'`. Set by choosing **Baseline Experiment (English)** or **Baseline Experiment (Español)** in the oTree admin when creating a session. | | `participant.session_language` | Participant | Copy of the session language code for exports. Set in the first round of the consent app. | Stratify or add fixed effects by `session_language` when pooling English and Spanish sessions. ## Opinion and options (topic elicitation and room composition) | Stored value | Meaning | |--------------|---------| | `Player.opinion` | `'A'` or `'B'`. Canonical codes; labels shown to participants are **Option A / Option B** (English) or **Opción A / Opción B** (Spanish) via `experiment_text.option_label`. | | `topic_data` (in `participant.vars`) | Keys are the **English** topic strings from `shared_constants.TOPICS` (stable identifiers). Values include `opinion` (`'A'`/`'B'`) and `punish` (bool). | | `Player.topic_label` | English topic key (same strings as `TOPICS`) for the current round. | | Display text for a topic | Use `experiment_text.display_topic(language, topic_key)`; Spanish sessions show Spanish topic wording while keys stay English for merging. | ## Practice round | Field | Notes | |-------|--------| | `practice_opinion` | `'A'` (e.g. dogs) or `'B'` (e.g. cats); labels localized in UI. | | `comp_q1`, `comp_q2`, `comp_q3` | Integer `1`–`3`; choice **text** is localized but stored values are language-independent. | ## Room composition | Field | Notes | |-------|--------| | `expressed_opinion` | `'true'` or `'lie'` (unchanged). | | `true_opinion`, `majority_opinion` (Player) | Localized **labels** (e.g. Option A vs Opción A) as shown in the session; pair with `session_language` for analysis. | | `belief_lying` | Integer 0–10 (unchanged). | ## Static assets PNG files under `_static/room_composition/` use abstract **A/B** styling. No separate Spanish image set was required; if you add text to figures later, add localized assets and branch on `session.config['language']` in templates if needed.