Skip to main content

pub.layers.judgment

Linguistic judgment records for annotation experiments, crowdsourced judgments, and inter-annotator agreement. Inspired by bead's framework for constructing, deploying, and analyzing large-scale linguistic judgment experiments.

Types

experimentDef

NSID: pub.layers.judgment.experimentDef Type: Record

Definition of an annotation or judgment experiment.

FieldTypeDescription
namestringExperiment name.
descriptionstringDetailed description.
measureTypeUriat-uriAT-URI of the measure type definition node. Community-expandable via knowledge graph.
measureTypestringWhat property or behavior is being measured (fallback). Known values: acceptability, inference, similarity, plausibility, comprehension, preference, extraction, reading-time, production, custom
taskTypeUriat-uriAT-URI of the response instrument definition node. Community-expandable via knowledge graph.
taskTypestringResponse instrument: how the response is collected (fallback). Known values: forced-choice, multi-select, ordinal-scale, magnitude, binary, categorical, free-text, cloze, span-labeling, custom
guidelinesstringTask guidelines and instructions.
ontologyRefat-uriReference to the ontology used.
personaRefat-uriReference to the persona defining the annotation framework.
corpusRefat-uriReference to the corpus.
templateRefsarrayReferences to pub.layers.resource.template records used to generate stimuli. Array of at-uri
collectionRefsarrayReferences to pub.layers.resource.collection records providing filler pools. Array of at-uri
presentationrefHow stimuli are displayed to participants. Ref: pub.layers.judgment.defs#presentationSpec
recordingMethodsarrayData capture instruments used in this experiment. Array of ref: pub.layers.judgment.defs#recordingMethod
designrefExperiment design specification (list constraints, distribution, item order). Ref: pub.layers.judgment.defs#experimentDesign
scaleMinintegerMinimum scale value for ordinal-scale judgments.
scaleMaxintegerMaximum scale value.
labelsarrayAvailable labels for categorical judgments. Array of strings
knowledgeRefsarrayKnowledge graph references. Array of ref: pub.layers.defs#knowledgeRef
featuresrefRef: pub.layers.defs#featureMap
createdAtdatetimeRecord creation timestamp.

judgmentSet

NSID: pub.layers.judgment.judgmentSet Type: Record

A set of judgments from a single annotator for an experiment.

FieldTypeDescription
experimentRefat-uriReference to the experiment.
agentrefThe agent who produced this judgment set. Ref: pub.layers.defs#agentRef
judgmentsarrayThe judgments. Array of ref: pub.layers.judgment.defs#judgment
metadatarefRef: pub.layers.defs#annotationMetadata
knowledgeRefsarrayKnowledge graph references. Array of ref: pub.layers.defs#knowledgeRef
featuresrefOpen-ended features (e.g., annotator demographics, session metadata, completion time). Ref: pub.layers.defs#featureMap
createdAtdatetimeRecord creation timestamp.

judgment

NSID: pub.layers.judgment.defs#judgment Type: Object

A single judgment about a linguistic item.

FieldTypeDescription
itemrefReference to the item being judged. Ref: pub.layers.defs#objectRef
fillingRefat-uriReference to the pub.layers.resource.filling that generated the item being judged.
categoricalValuestringCategorical judgment label.
scalarValueintegerNumeric response value (ordinal-scale rating, magnitude estimate, or rank position).
textSpanrefSelected text span for span-labeling tasks. Ref: pub.layers.defs#span
freeTextstringFree-text response.
responseTimeMsintegerResponse time in milliseconds.
confidenceintegerConfidence score 0-1000.
behavioralDatarefBehavioral analytics (e.g., mouse movements, keystroke patterns, eye tracking). Ref: pub.layers.defs#featureMap
featuresrefRef: pub.layers.defs#featureMap

experimentDesign

NSID: pub.layers.judgment.defs#experimentDesign Type: Object

Experiment design specification controlling how items are distributed, ordered, and timed.

FieldTypeDescription
listConstraintsarrayConstraints on how items are distributed into lists. Array of ref: pub.layers.judgment.defs#listConstraint
distributionStrategyUriat-uriAT-URI of the distribution strategy definition node. Community-expandable via knowledge graph.
distributionStrategystringDistribution strategy slug (fallback). Known values: latin-square, random, blocked, stratified, custom
itemOrderUriat-uriAT-URI of the item order definition node. Community-expandable via knowledge graph.
itemOrderstringHow items are ordered within a list (fallback). Known values: random-order, fixed-order, blocked, adaptive, custom
timingMsintegerTime limit per item in milliseconds, if applicable.
featuresrefRef: pub.layers.defs#featureMap

listConstraint

NSID: pub.layers.judgment.defs#listConstraint Type: Object

A constraint on how experimental items are distributed into lists (e.g., Latin square balancing, no two items of the same condition adjacent).

FieldTypeDescription
kindUriat-uriAT-URI of the constraint kind definition node. Community-expandable via knowledge graph.
kindstringConstraint kind slug (fallback). Known values: latin-square, no-adjacent-same-condition, balanced-frequency, min-distance, custom
targetPropertystringThe property being constrained (e.g., 'condition', 'verb-type', 'length').
parametersrefRef: pub.layers.defs#featureMap
constraintrefFormal constraint expression. Ref: pub.layers.defs#constraint

presentationSpec

NSID: pub.layers.judgment.defs#presentationSpec Type: Object

How stimuli are displayed to participants.

FieldTypeDescription
methodUriat-uriAT-URI of the presentation method definition node. Community-expandable via knowledge graph.
methodstringPresentation method (fallback). Known values: rsvp, self-paced, whole-sentence, auditory, visual-world, masked-priming, cross-modal, naturalistic, gating, maze, boundary, moving-window, custom
chunkingUnitstringHow text is segmented for incremental presentation. Known values: word, character, morpheme, phrase, sentence, region, custom
timingMsintegerPer-chunk display duration in milliseconds.
isiMsintegerInter-stimulus interval in milliseconds.
cumulativebooleanWhether previous chunks remain visible during incremental presentation.
maskCharstringMasking character for non-cumulative displays (e.g., '-', '#').
featuresrefRef: pub.layers.defs#featureMap

recordingMethod

NSID: pub.layers.judgment.defs#recordingMethod Type: Object

A data capture instrument used in an experiment.

FieldTypeDescription
methodUriat-uriAT-URI of the recording method definition node. Community-expandable via knowledge graph.
methodstringRecording method (fallback). Known values: button-box, keyboard, mouse-click, touchscreen, voice, eeg, meg, fmri, fnirs, eye-tracking, pupillometry, mouse-tracking, emg, skin-conductance, ecog, custom
featuresrefRef: pub.layers.defs#featureMap

agreementReport

NSID: pub.layers.judgment.agreementReport Type: Record

An inter-annotator agreement report summarizing agreement metrics across judgment sets.

FieldTypeDescription
experimentRefat-uriReference to the experiment.
judgmentSetRefsarrayThe judgment sets compared. Array of at-uri
metricUriat-uriAT-URI of the metric definition node. Community-expandable via knowledge graph.
metricstringMetric slug (fallback). Known values: cohens-kappa, fleiss-kappa, krippendorff-alpha, percent-agreement, correlation, f1, custom
valueintegerMetric value scaled 0-1000.
numAnnotatorsintegerNumber of annotators.
numItemsintegerNumber of items judged.
featuresrefRef: pub.layers.defs#featureMap
createdAtdatetimeRecord creation timestamp.

XRPC Queries

getExperimentDef

NSID: pub.layers.judgment.getExperimentDef

Retrieve a single experiment definition record by AT-URI.

ParameterTypeDescription
uriat-uri (required)The AT-URI of the experiment definition record.

Output: The experiment definition record object.

listExperimentDefs

NSID: pub.layers.judgment.listExperimentDefs

List experiment definition records in a repository with pagination.

ParameterTypeDescription
repodid (required)The DID of the repository.
limitintegerMaximum number of records to return (1-100, default 50).
cursorstringPagination cursor from previous response.

Output: { records: experimentDef[], cursor?: string }

getJudgmentSet

NSID: pub.layers.judgment.getJudgmentSet

Retrieve a single judgment set record by AT-URI.

ParameterTypeDescription
uriat-uri (required)The AT-URI of the judgment set record.

Output: The judgment set record object.

listJudgmentSets

NSID: pub.layers.judgment.listJudgmentSets

List judgment set records in a repository with pagination.

ParameterTypeDescription
repodid (required)The DID of the repository.
limitintegerMaximum number of records to return (1-100, default 50).
cursorstringPagination cursor from previous response.

Output: { records: judgmentSet[], cursor?: string }

getAgreementReport

NSID: pub.layers.judgment.getAgreementReport

Retrieve a single agreement report record by AT-URI.

ParameterTypeDescription
uriat-uri (required)The AT-URI of the agreement report record.

Output: The agreement report record object.

listAgreementReports

NSID: pub.layers.judgment.listAgreementReports

List agreement report records in a repository with pagination.

ParameterTypeDescription
repodid (required)The DID of the repository.
limitintegerMaximum number of records to return (1-100, default 50).
cursorstringPagination cursor from previous response.

Output: { records: agreementReport[], cursor?: string }