SREL YAML source

code: SREL
biber_number: H34
xiao_number: J86
name: Sentence relatives
definition: >-
  Relative clauses modifying an entire preceding clause.
normalization: finite_verbs
detection:
- requires:
  - word
  cql: '[word=","] [word="which"]'
  description: 'Sentence relatives: comma + which.'
- source: pybiber
  requires:
  - word
  - pos
  - upos
  cql: '[upos="PUNCT"] [word="which"]'
  anchor: last
  description: >-
    pybiber uses UPOS PUNCT (any punctuation) before "which", not just
    comma. Catches semicolon/dash-separated sentence relatives too.
sources:
- biber_1988
- pybiber
- xiao_2009
notes: >-
  Not in MFTE. Requires syntactic parsing to distinguish from NP relatives.
examples:
- text: He left, which surprised everyone