YNQU YAML source

code: YNQU
mfte_code: YNQU
name: Yes/no questions
definition: >-
  Questions answerable with yes or no (subject-auxiliary inversion without WH-word).
normalization: finite_verbs
detection:
- requires:
  - word
  - pos
  cql: '[pos="MD|VBP|VBZ|VBD"] [pos="PRP|NNP|NN"] []* [word="?"]'
  description: Aux/modal + subject + ... + question mark.
- source: mfte
  requires:
  - word
  - pos
  cql: '[pos!="UH" & word!="right|sure|okay|yeah|yep|yes|nope"] [word="?"]'
  combine: "_ & -WHQU & -QUTAG"
  anchor: last
  description: >-
    MFTE YNQU (lines 1126-1131) is a catch-all: any question mark not already
    claimed by WHQU or QUTAG. We match all ? marks (excluding those preceded
    by UH or common discourse markers that MFTE would tag as DMA/FPUH), then
    subtract WHQU and QUTAG counts. The preceding-token check replicates
    MFTE's "not preceded by _UH|_FPUH|_DMA" condition.
sources:
- mfte