# Function findWoWShifts

- findWoWShifts(buckets: WeekBucket[], threshold?: number): WoWShift[]

  Find consecutive-week pairs where the defection rate jumped by `≥ threshold` percentage points.

  Only positive jumps are reported (the MEP becoming more defection-prone).

  #### Parameters

  - buckets: WeekBucket[]

    Output of bucketByWeek.

  - threshold: number = DEFAULT_WOW_THRESHOLD_PP

    Minimum percentage-point delta (default DEFAULT_WOW_THRESHOLD_PP).

  #### Returns WoWShift[]

  Detected shifts in chronological order.

  - Defined in utils/votingBaseline.ts:452