OSCR

The Temporal Dynamics of the Labeling Algorithm During Natural Language Comprehension: Neural Evidence for Phrase Grammatical Type Generation.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

R · 89 lines · 2.8 KB · no license

  1. library(lme4)
  2. library(lmerTest)
  3. library(emmeans)
  4. ######de1/de2 vs. baseline_condition
  5. rm(list=ls())
  6. dat = read.csv(file.choose(), header = T )
  7. str(dat)
  8. dat$Condition <- factor(dat$Condition, levels=c('baseline_condition', 'de1', 'de2'))
  9. hm <- cbind(c(-0.5,0.5,0),
  10. c(-0.5,0,0.5))
  11. cor(hm)
  12. contrasts(dat$Condition) <- t(MASS::ginv(hm))
  13. dat$Hemisphere <- factor(dat$Hem, levels=c('left', 'right'))
  14. contrasts(dat$Hemisphere)<-c(0.5,-0.5)
  15. cor(contrasts(dat$Hemisphere))
  16. dat$Area <- factor(dat$Area, levels=c('anterior', 'posterior'))
  17. contrasts(dat$Area)<-c(0.5,-0.5)
  18. contrasts(dat$Area)
  19. dat$sub <- as.factor(dat$Sub)
  20. dat$Item <- as.factor(dat$Item)
  21. dat$channel <- as.factor(dat$channel)
  22. ####Critical word T420_700
  23. T420_700.model <- lmer(T420_700 ~ Condition * Hemisphere * Area + Baseline_window + (1 + Hemisphere |sub) + (1 | Item) + (1 | channel), data = dat)
  24. summary(T420_700.model)
  25. ##Simple effects
  26. ##Condition1:Area1 anterior
  27. dat$de1vsbaseline_condition <- ifelse(dat$Condition=='de1',0.5,-0.5)
  28. T420_700.model<- lmer(T420_700 ~ de1vsbaseline_condition + Baseline_window + (1 | sub) + (1 + de1vsbaseline_condition | Item) + (1 | channel), data = subset(dat, Condition %in% c("de1", "baseline_condition") & Area == "anterior"))
  29. summary(T420_700.model)
  30. ##Condition1:Area1 posterior
  31. dat$de1vsbaseline_condition <- ifelse(dat$Condition=='de',0.5,-0.5)
  32. T420_700.model<- lmer(T420_700 ~ de1vsbaseline_condition + Baseline_window + (1 | sub) + (1 + de1vsbaseline_condition | Item) + (1 | channel), data = subset(dat, Condition %in% c("de1", "baseline_condition") & Area == "posterior"))
  33. summary(T420_700.model)
  34. ####Word1_300_500
  35. W1_300_500.model<- lmer(W1_300_500 ~ Condition * Hemisphere * Area + (1 + Hemisphere | sub) + (1 + Hemisphere | Item) + (1 | channel), data = dat)
  36. summary(W1_300_500.model)
  37. ######de2 vs.de1
  38. rm(list=ls())
  39. dat = read.csv(file.choose(), header = T )
  40. str(dat)
  41. dat$Condition <- factor(dat$Condition, levels=c('de2', 'de1'))
  42. contrasts(dat$Condition) <-c(0.5,-0.5)
  43. dat$Hemisphere <- factor(dat$Hem, levels=c('left', 'right'))
  44. contrasts(dat$Hemisphere)<-c(0.5,-0.5)
  45. cor(contrasts(dat$Hemisphere))
  46. dat$Area <- factor(dat$Area, levels=c('anterior', 'posterior'))
  47. contrasts(dat$Area)<-c(0.5,-0.5)
  48. contrasts(dat$Area)
  49. dat$sub <- as.factor(dat$Sub)
  50. dat$Item <- as.factor(dat$Item)
  51. dat$channel <- as.factor(dat$channel)
  52. ####Critical word T420_700
  53. T420_700.model <- lmer(T420_700 ~ Condition * Hemisphere * Area + Baseline_window + (1 | sub) + (1 + Condition | Item) + (1 | channel), data = dat)
  54. summary(T420_700.model)
  55. ####Word1_300_500
  56. W1_300_500.model<- lmer(W1_300_500 ~ Condition * Hemisphere * Area + (1 + Area | sub) + (1 | Item) + (1 | channel), data = dat)
  57. summary(W1_300_500.model)

Best_Model.R, no license · at the source

Overview

Authors: Zhenghui Sun1,2, Feipeng Chen1, Shaodong Gui3, Yajiao Shi4, Yiming Yang1,5,6
  1. School of Linguistic Sciences and Arts, Jiangsu Normal University, Xuzhou, China
  2. College of Biomedical Engineering and Instrument Sciences, Zhejiang University, Hangzhou, China
  3. Suzhou Xingze Experimental School, Suzhou, China
  4. College of Humanities and Communication, Zhejiang University of Finance & Economics, Hangzhou, China
  5. Linguistic Science Laboratory of Jiangsu Normal University, Laboratory of Philosophy and Social Sciences at Universities in Jiangsu Province, Xuzhou, China
  6. Collaborative Innovation Center for Language Ability, Jiangsu Normal University, Xuzhou, China
Journal: Neurobiology of language (Cambridge, Mass.), volume 7, article NOL.a.264
Dates: received 8 October 2025; accepted 14 April 2026; published online 1 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1162/nol.a.264 · PMID 42491983 · PMCID PMC13379301 · OpenAlex W7155559672
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality)
Methods: Spectral & time-frequency, Connectivity, Statistics, Smoothing, state filtering, decompositions, Preprocessing, Evoked potentials, Physiology & signal measures, Machine learning
Keywords: EEG, grammatical type, labeling algorithm, representational similarity analysis (RSA), syntax-semantics interface
Topic: Neurobiology of Language and Bilingualism (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Major Program of the Social Science Foundation of China (17ZDA301); National Natural Science Foundation of China (31271196); Major Entrusted Program of the National Social Science Foundation of China
Citations: not cited yet (Europe PMC); 100 references in the paper

Abstract

Language, as a uniquely human faculty, combines words into hierarchical phrases with diverse syntactic-semantic relations (e.g., subject–predicate and modifier–head phrases). These phrase types are theoretically generated through the labeling algorithm at the syntax-semantics interface. Nevertheless, previous research has focused predominantly on the syntactic system, whereas the neural basis and temporal dynamics of labeling remain poorly understood. To address this gap, we developed the Head-Anchored Labeling Manipulation approach. This method manipulates labeling by embedding the same Mandarin noun–verb dual-category words as heads in tightly controlled modifier–head constructions, where the head alone determines the phrase’s grammatical type. The representational similarity analysis of EEG data revealed that labeling representations emerged during both the early and middle stages: 192–227, 290–318, 330–360, and 385–416 ms following the dual-category word. Labeling emerged as early as ~200 ms, concurrent with syntactic Merge, and continued into the N400 window. These results demonstrate that labeling dynamically links syntax to conceptual–intentional system and generates phrase types by determining the constituent head. Its early engagement challenges syntax-first models and supports parallel interactive accounts. Moreover, combinability representations (520–596 and 604–632 ms), together with a late event-related brain potential negativity (420–700 ms) elicited by the dual-category word in the baseline condition, reflect increased difficulty in reconciling semantic associations with atypical syntactic configurations. Together, these findings provide clear electrophysiological evidence for the temporal dynamics of labeling and elucidate the processes at the syntax-semantics interface.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above.

OSF 9qvtx

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 8 files
Software Heritage: not checked
Found in: “DATA AND CODE AVAILABILITY STATEMENT”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: emmeans (1 file), lme4 (1 file), lmerTest (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
1 file

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 1 script, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data and code availability statement

The data and analysis scripts related to the reported results are available on OSF: https://osf.io/9qvtx/?view_only=fd625500841b459d9f72433ce04ab0f7.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 5 authors, 5 keywords, 3 funders, 94 references.

Cite

This paper

Sun, Z., Chen, F., Gui, S., Shi, Y., & Yang, Y. (2026). The Temporal Dynamics of the Labeling Algorithm During Natural Language Comprehension: Neural Evidence for Phrase Grammatical Type Generation. Neurobiology of language (Cambridge, Mass.), 7, NOL.a.264. https://doi.org/10.1162/nol.a.264

BibTeX

@article{sun2026temporal,
author = {Sun, Zhenghui and Chen, Feipeng and Gui, Shaodong and Shi, Yajiao and Yang, Yiming},
title = {{The Temporal Dynamics of the Labeling Algorithm During Natural Language Comprehension: Neural Evidence for Phrase Grammatical Type Generation}},
journal = {Neurobiology of language (Cambridge, Mass.)},
year = {2026},
month = jul,
volume = {7},
pages = {NOL.a.264},
publisher = {MIT Press},
issn = {2641-4368},
doi = {10.1162/nol.a.264},
url = {https://doi.org/10.1162/nol.a.264},
pmid = {42491983},
pmcid = {PMC13379301}
}

RIS

TY - JOUR
AU - Sun, Zhenghui
AU - Chen, Feipeng
AU - Gui, Shaodong
AU - Shi, Yajiao
AU - Yang, Yiming
TI - The Temporal Dynamics of the Labeling Algorithm During Natural Language Comprehension: Neural Evidence for Phrase Grammatical Type Generation
T2 - Neurobiology of language (Cambridge, Mass.)
J2 - Neurobiol Lang (Camb)
PY - 2026
DA - 2026/07/01
VL - 7
SP - NOL.a.264
SN - 2641-4368
PB - MIT Press
DO - 10.1162/nol.a.264
UR - https://doi.org/10.1162/nol.a.264
LA - en
ER -

CSL-JSON

{
"id": "10.1162/nol.a.264",
"type": "article-journal",
"title": "The Temporal Dynamics of the Labeling Algorithm During Natural Language Comprehension: Neural Evidence for Phrase Grammatical Type Generation",
"container-title": "Neurobiology of language (Cambridge, Mass.)",
"author": [
{
"family": "Sun",
"given": "Zhenghui"
},
{
"family": "Chen",
"given": "Feipeng"
},
{
"family": "Gui",
"given": "Shaodong"
},
{
"family": "Shi",
"given": "Yajiao"
},
{
"family": "Yang",
"given": "Yiming"
}
],
"container-title-short": "Neurobiol Lang (Camb)",
"volume": "7",
"page": "NOL.a.264",
"DOI": "10.1162/nol.a.264",
"PMID": "42491983",
"PMCID": "PMC13379301",
"ISSN": "2641-4368",
"publisher": "MIT Press",
"URL": "https://doi.org/10.1162/nol.a.264",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
1
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1162/nol.a.254
A Unified Neural Time Course for Words, Phrases, and Sentences: MEG Evidence from Parallel Presentation.
Journal: Neurobiology of language (Cambridge, Mass.)
In common: 11 references
[2] doi:10.1126/sciadv.aec0518 [code]
Hybrid spatial organization and evidence for magnitude-independent neural coding of linguistic information during sentence production.
Journal: Science advances
In common: lmerTest, lme4, 9 references
[3] doi:10.1038/s41598-022-18162-3 [code]
Overt and implicit prosody contribute to neurophysiological responses previously attributed to grammatical processing.
Journal: Scientific reports
In common: lmerTest, lme4, EEG, 8 references
[4] doi:10.1073/pnas.2422097122
Hierarchical dynamic coding coordinates speech comprehension in the human brain
Journal: n/a
In common: 9 references
[5] doi:10.1162/nol.a.227
Gateway to Syntax: On the Neural Origins of the Left Anterior Negativity and Their Functional Implications.
Journal: Neurobiology of language (Cambridge, Mass.)
In common: 9 references
[6] doi:10.1162/imag.a.1131 [code]
A common framework for semantic memory and semantic composition.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: emmeans, lmerTest, lme4, 7 references
[7] doi:10.3389/fpsyg.2022.1010708 [code]
The effects of grammatical gender on the processing of occupational role names in Slovene: An event-related potential study.
Journal: Frontiers in psychology
In common: lme4, EEG, 9 references
[8] doi:10.1073/pnas.2507417122 [code]
Building hierarchically nested structure by rapid neural sequences.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: 9 references
[9] doi:10.3389/fnhum.2026.1820376 [code]
The neural dynamics of political socio-pragmatic violations: an ERP study.
Journal: Frontiers in human neuroscience
In common: emmeans, lmerTest, lme4, EEG, 6 references
[10] doi:10.1162/nol_a_00094 [code]
Understanding the Effects of Constraint and Predictability in ERP.
Journal: Neurobiology of language (Cambridge, Mass.)
In common: lme4, EEG, 8 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1162/nol.a.264.svg)](https://openscicode.org/badge/doi/10.1162/nol.a.264)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1162/nol.a.264.svg
   :target: https://openscicode.org/badge/doi/10.1162/nol.a.264
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1162/nol.a.264"><img src="https://openscicode.org/badge/doi/10.1162/nol.a.264.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.