Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.6%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: fpyaz
  • Language: HTML
  • Default Branch: main
  • Size: 21.7 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Citation

README.md

plugin-hover-definitions

Overview

A jsPsych plugin that provides hover-over definitions and culturally appropriate synonyms for words. This plugin is designed to help experimenters who have test subjects who may not know certain words, by providing definitions and synonyms when hovering over specific words in the text.

Features

  • Hover over words to see their definitions and synonyms
  • Culturally appropriate synonyms based on locale
  • Customizable tooltip styling
  • Tracks which words were hovered over and how many times
  • Uses a free dictionary API to fetch definitions and synonyms

Loading

```html <!-- Load jsPsych -->

```

Compatibility

plugin-hover-definitions requires jsPsych v7.0.0 or later.

Usage

Basic Usage

javascript const hoverTrial = { type: jsPsychPluginHoverDefinitions, stimulus: ` <p> The <span data-hover>ubiquitous</span> nature of technology has led to <span data-hover>unprecedented</span> changes in how we communicate. </p> `, locale: 'en-US', api_endpoint: 'https://api.dictionaryapi.dev/api/v2/entries/en/' };

Parameters

| Parameter | Type | Default Value | Description | |-----------|------|---------------|-------------| | stimulus | string | undefined | The HTML content to display. Words that should have hover definitions should be marked with the data-hover attribute. | | locale | string | 'en-US' | The language/locale code to use for fetching culturally appropriate synonyms. | | apiendpoint | string | 'https://api.dictionaryapi.dev/api/v2/entries/en/' | API endpoint for fetching word definitions and synonyms. | | tooltipstyle | string | 'background-color: #f9f9f9; border: 1px solid #ddd; padding: 10px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); max-width: 300px; position: absolute; z-index: 1000;' | CSS styling for the tooltip that appears on hover. |

Data Generated

| Name | Type | Description | |------|------|-------------| | stimulus | string | The HTML content that was displayed. | | hovered_words | object | An object containing information about which words were hovered over, how many times, and timestamps. | | locale | string | The language/locale that was used. |

Use Cases

  1. Language Learning Experiments: Help non-native speakers understand complex vocabulary in experimental instructions or stimuli.

  2. Educational Research: Provide definitions for technical terms in educational materials to ensure all participants have access to the same information.

  3. Cross-Cultural Studies: Offer culturally appropriate synonyms to ensure participants from different backgrounds understand the intended meaning.

  4. Accessibility: Make experiments more accessible to participants with limited vocabulary or language proficiency.

  5. Reading Comprehension Studies: Track which words participants need help with to study vocabulary difficulties.

Example

See the examples/index.html file for a complete working example of the plugin.

Author / Citation

Franchesca Pichardo

Owner

  • Login: fpyaz
  • Kind: user

GitHub Events

Total
  • Member event: 1
  • Create event: 2
Last Year
  • Member event: 1
  • Create event: 2

Dependencies

package-lock.json npm
  • 690 dependencies
package.json npm
  • @jspsych/config ^3.2.2 development
  • @citation-js/core ^0.7.14
  • @citation-js/plugin-bibtex ^0.7.14
  • @citation-js/plugin-cff ^0.6.1
  • @citation-js/plugin-software-formats ^0.6.1
  • jspsych ^8.0.0