An R-based analysis investigating whether word structure (syllable length and initial segment type) influences acceptability judgments among native Brazilian Portuguese speakers, using a nonce-word forced-choice task.
We analyze acceptability judgments for nonce words varying by:
Responses are binary (accept
vs. reject
). We visualize the contingency with mosaic plots and test for associations using chi-square tests.
bp-nonce.csv
response
: "accept"
or "reject"
length
: e.g. "1"
(monosyllabic) or "2"
(disyllabic)initial
: initial segment category, e.g. "stop"
, "fricative"
, etc.response
× length
× initial
.length
and initial
.response
vs. initial
.
length
vs. initial
.
ggplot2
ggmosaic
The script will install missing packages automatically.
git clone https://github.com/yourusername/bp-nonce-acceptability.git
cd bp-nonce-acceptability
bp-nonce.csv
in the project root.Run the analysis script:
# In R or RStudio, set working directory and source:
setwd("path/to/bp-nonce-acceptability")
source("bp_nonce_analysis.R")
This will:
ggplot2
, ggmosaic
)bp-nonce.csv
xtabs(~ response + length + initial)
Mosaic plot:
ggplot(bp) +
geom_mosaic(aes(weight=1, x=product(response), fill=response)) +
facet_grid(length ~ initial) + …
Chi-square tests:
chisq.test(xtabs(~ response + initial, data=bp))
chisq.test(xtabs(~ length + initial, data=bp))
Conclusion: No evidence that initial segment type influences acceptability. Word structure does not appear to affect judgments in this dataset.
response
vs. length
directly.glm(response ~ length + initial, family="binomial")
).bp-nonce.csv
(private dataset, see project repository).This project is licensed under the MIT License. See LICENSE for details.