<commit_before># Modifying Experiment Templates

## config.js

Experiment styles can be updated here. These styles include the font color, font size, and font family.

Additionally, you can set for corrective feedback after trials to either occur \(set to "true"\) or not \(set to "false"\).

## stim.js

Stimuli are added using the stim.js file, which contains an array to put your stimuli information into.

## consent.js

Add text to this file that you want in your consent page.

## debrief.js

Add text to this file for debrief information at the end of the experiment.
<commit_msg>Added information on experiment templates<commit_after># Modifying Experiment Templates

* [General settings and editing content](modifying-experiment-templates.md#general-settings-and-editing-content)
* [Lexical decision template](modifying-experiment-templates.md#lexical-decision-template)
* [Grammaticality judgement template](modifying-experiment-templates.md#grammaticality-judgement-template)

## General settings and editing content
Most Pushkin native experiment templates will include the following files for editing the settings and content of your experiment. The basic experiment template is the exception, and is a fairly bare bones template for customization.

### config.js
This file contains some settings you can customize for the experiment. Currently, the default settings in every experiment template are:

* **fontColor**: Set the color for the experiment's font. This can be a web color name, a hex color code, or rgb setting. The default setting is "black."
* **fontSize**: Set the font family. This accepts any font family universally available to web browsers.
* **fontFamily**: Set the font family. 
* **correctiveFeedback**: When set to "true", corrective feedback on the stimuli or participant's responses will be given (e.g. "You got that question correct!" or "The sentence you read was ungrammatical."). When set to "false", no corrective feedback is given. The default setting is "true".

### stim.js
Stimuli are added using the stim.js file, which contains an array to put your stimuli information into.

### consent.js
Add text to this file that you want on your consent page.

### debrief.js
Add text to this file for debrief information at the end of the experiment.

## Lexical decision template
To install this experiment template, use the command `pushkin install experiment`, then select **lexical**.

### config.js
When **correctiveFeedback** is set to true, the bounding box will change color to indicate correctness - green meaning correct, and red meaning incorrect. If set to false, the box remains black.

## Grammaticality judgement template
To install this experiment template, use the command `pushkin install experiment`, then select **grammaticality**.

### config.js
When **correctiveFeedback** is set to true: the two-alternative forced choice question will indicate if particiapnt's response was correct (in green font) or not (in red font). For the likert scale or slider, text indicating if the sentence was grammatical or ungrammatical will show. For all response types, when this is set to false, a fixation cross appears instead of corrective feedback.

**responseType**: Set whether the response type is 2-alternative forced choice (set to "2afc"), 5 item likert scale (set to "likert"), or a slider from 0-100 (set to "slider").

{'fraction_non_alphanumeric': 0.0719360568383659, 'fraction_numerical': 0.0020722320899940793, 'mean_word_length': 4.9073426573426575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2977277', 'n_tokens_mistral': 847, 'n_tokens_neox': 815, 'n_words': 459}