HDG YAML source

code: HDG
biber_number: K47
mfte_code: HDG
name: Hedges
definition: >-
  Hedging expressions: maybe, sort of, kind of, perhaps, somewhat, etc.
normalization: words
detection:
- requires:
  - word
  parts:
    p1:
      cql: '[word={words}]'
    p2:
      cql: '[word="something"] [word="like"]'
    p3:
      cql: '[word="at"] [word="about"]'
    p4:
      cql: '[word="sort"] [word="of"]'
    p5:
      cql: '[word="kinda|sorta"]'
  combine: "p1 | p2 | p3 | p4 | p5"
  words:
  - allegedly
  - apparently
  - conceivably
  - maybe
  - perhaps
  - possibly
  - predictably
  - presumably
  - probably
  - purportedly
  - roughly
  - somewhat
  refines: RB
  description: Default hedges rule (based on MFTE). Refines RB.
- source: mfte
  requires:
  - word
  - pos
  parts:
    p1:
      cql: '[word={words}]'
    p2:
      cql: '[word="something"] [word="like"]'
    p3:
      cql: '[word="at"] [word="about"]'
    p4:
      cql: '[word="sort"] [word="of"]'
    p5:
      cql: '[word="kinda|sorta"]'
  combine: "p1 | p2 | p3 | p4 | p5"
  words:
  - allegedly
  - apparently
  - conceivably
  - maybe
  - perhaps
  - possibly
  - predictably
  - presumably
  - probably
  - purportedly
  - roughly
  - somewhat
  refines: RB
  description: >-
    MFTE hedges: simple word list, plus multi-word patterns.
    "something like" → HDG on "like". "at about" → HDG on "about".
    "sort/kind of" → HDG on "of". "kinda/sorta" → HDG.
    "about/around" before numbers → HDG.
- source: pybiber
  requires:
  - word
  parts:
    p1:
      cql: '[word="maybe"]'
    p2:
      cql: '[word="at"] [word="about"]'
    p3:
      cql: '[word="something"] [word="like"]'
    p4:
      cql: '[word="more"] [word="or"] [word="less"]'
    p5:
      cql: '[word="sort"] [word="of"]'
    p6:
      cql: '[word="kind"] [word="of"]'
  combine: "p1 | p2 | p3 | p4 | p5 | p6"
  description: >-
    pybiber hedges: "maybe" (any tag) plus 5 multi-word patterns.
    All blob patterns use `_\S*` (any POS tag, not restricted to RB).
examples:
- text: _Perhaps_ the road would be safer in daylight.
- text: It was _sort of_ an accident, or _maybe_ a stroke of luck.
- text: He was _more or less_ convinced they should continue.
- text: There seemed to be no _sort of_ chance of getting out.
  source: le_foll_2024
- text: I wish that _kind of_ thing never happened.
  source: le_foll_2024
- text: She's _maybe_ gonna do it.
  source: le_foll_2024
non_examples:
- text: What ~sort of~ creature was it?
  note: sort of = type of, not hedge — detector matches but wrong sense
sources:
- biber_1988
- mfte
- pybiber
- grieve_2023