Science Score: 44.0%

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

  • CITATION.cff file
    Found 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: 207 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 2
  • 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

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Franchesca Pichardo"  # Replace with last name
  given-names: "Franchesca Pichardo"   # Replace with first name
  name-particle: "Franchesca Pichardo" # Replace with name particle(s)
  orcid: "https://orcid.org/0000-0000-0000-0000"  # Replace with ORCID
# More  authors can be listed here in the same format as above
contact:  # Contact person for this extension
- family-names: "Franchesca Pichardo"
  given-names: "Franchesca Pichardo"
  email: "{email}"          # Replace with contact person's email
  orcid: "https://orcid.org/0000-0000-0000-0000"  # Replace with contact person's ORCID
title: "jsPsychPluginJspychTrial"
version: 0.0.0
doi: 10.5281/zenodo.1234    # Replace with DOI
date-released: 2000-01-01
url: "{softwareUrl}"        # Replace with URL to this extension

# If you wish to cite a paper on this extension instead, you can use the following template:
preferred-citation:
  authors:
  - family-names: "Franchesca Pichardo"
    given-names: "Franchesca Pichardo"
    name-particle: "Franchesca Pichardo"
    orcid: "https://orcid.org/0000-0000-0000-0000"
  # More authors can be listed here in the same format as above
  date-published: 2023-05-11
  doi: 10.21105/joss.12345 
  issn: 1234-5678
  issue: 01
  journal: Journal for Open Source Software
  publisher:
    name: Open Journals
  start: 0001
  title: "{title}"
  type: article               # Other options include: book, pamphlet, conference-paper...
  url: "{linkToPublicationInJournal}"
  volume: 1

# More information on the preffered-citation CFF format can be found at https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files#citing-something-other-than-software

GitHub Events

Total
  • Member event: 1
  • Push event: 1
  • Fork event: 2
  • Create event: 2
Last Year
  • Member event: 1
  • Push event: 1
  • Fork event: 2
  • 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