Sprouse, Wagers & Phillips (2012) — Factorial Acceptability Designs #
[SWP12], with the magnitude-estimation groundwork of [Spr07].
Contract types for the factorial acceptability-judgment experimental
paradigm: formal/experimental-syntax studies that elicit sentence
acceptability ratings across a factorial design to test categorical
predictions of grammatical theory. The paradigm is theory-agnostic:
it specifies what kind of input the experiment provides and what
shape of output a theory must produce; bridge theorems in downstream
Studies/ files translate theory-native predictions into these types.
Main declarations #
FactorialCondition: a typed cell in a 2-factor factorial design, generic over the factor types.DDResult: a difference-in-differences score (the Maxwell & Delaney 2003 computation [SWP12] use as the standard test of island effects), stored as ℚ for exact arithmetic.AccountPredictions: an n-cell prediction tuple from a theoretical account, with a decidableMatchescomparator.SentencePair.toFactorial: the pre-experimental minimal-pair datum (Linglib/Features/MinimalPairs.lean) as the degenerate 1×2 case of a factorial design.
Out of scope #
- Statistical-model specifications (LME formulae, contrast coding, random-effect structures) — analysis-pipeline detail
- Stimulus norming details (filler ratings, balancing constraints) — study-internal methodology
- Participant-population metadata (L1, age, dialect) — study metadata
- Raw rating scales / z-score transformations — measurement detail
Factorial conditions #
A typed cell in a 2-factor factorial design ([Spr07]: §2; [SWP12]: §2.1).
Generic over the two factor types so that the same machinery
accepts any 2×2/2×3/3×3 design. The sentence field carries the
actual stimulus (verbatim from the paper); label is the
experiment's printed condition name.
- label : String
Condition label as printed in the paper (e.g. "WhHell-Situ").
- level1 : F1
Level of the first factor.
- level2 : F2
Level of the second factor.
- sentence : String
Verbatim stimulus sentence.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Difference-in-differences scores #
A difference-in-differences (DD) score from a 2×2 factorial design, using the Maxwell & Delaney (2003) computation: DD = D2 − D1, where D1 and D2 are the two main-factor differences. A positive DD reflects a superadditive interaction — a penalty above and beyond the sum of the two main effects. [SWP12]'s standard test of island effects in experimental syntax.
Stored as ℚ rather than Float to respect linglib's exact-arithmetic
discipline. The interactionSignificant flag records the linear
mixed-effects model's interaction-term p-value (typically p < 0.05).
- comparison : String
Description of the two-factor contrast (e.g. "in-situ vs full movement").
- dd : ℚ
DD score. Positive → superadditive interaction; ≈ 0 → additive.
- interactionSignificant : Bool
Did the LME model's interaction term reach significance?
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- SprouseEtAl2012.instReprDDResult = { reprPrec := SprouseEtAl2012.instReprDDResult.repr }
A DD score is superadditive if positive — extra penalty beyond main effects.
Equations
- r.Superadditive = (r.dd > 0)
Instances For
Equations
- r.instDecidableSuperadditive = id inferInstance
Equations
- r.instDecidableAdditive = id inferInstance
Account predictions #
A theoretical account's predicted acceptability pattern across n
cells of a factorial design. Each cell is True (predicted acceptable)
or False (predicted unacceptable).
Used to compare a theory's predictions against the empirical pattern
via Matches.
- cell : Fin n → Prop
Per-cell predicted acceptability.
- decCell (i : Fin n) : Decidable (self.cell i)
Each cell is decidable (so pattern comparison is decidable).
Instances For
Two prediction tuples match iff they predict the same pattern in every cell.
Instances For
Equations
- a.instDecidableMatches b = Fintype.decidableForallFintype
Build a 4-cell AccountPredictions from four explicit Props (the
standard 2×2 case). Convenience for the most common factorial.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Build a 3-cell AccountPredictions (e.g., a 1×3 strategy contrast).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Relation to introspective minimal pairs #
A SentencePair is structurally a 1×2 factorial design: one
Unit-valued first factor, a Bool-valued grammaticality factor,
one cell per Bool value. This makes the relationship between the
minimal-pair tradition and the factorial discipline explicit:
SentencePair is the degenerate case of FactorialCondition Unit Bool lifted to a pair of cells.
Equations
- One or more equations did not get rendered due to their size.