# Analysis rules, version 0.8.2

Written on 2026-12-01, before any of the four analyses was run. The inclusion rule for the stricter dictionary (§3) was fixed at that point and not changed afterwards.

## 1. Data and units

| Unit | Source | Count | Notes |
|---|---|---|---|
| Occupations in the July 2022 consultation draft | `local-data/draft2022_texts.json` (S008; local only, reproduction rights not stated) | 1,636 | Codes are unique. Every entry has a definition; 11 entries have no task list. They stay in every denominator and count as having no task hit. |
| S marks | the draft's own marker field | 97 S, 1,539 not S | The final 2022 table (S007, 1,639 occupations) is not used for these analyses. Draft and table have the same 97 S titles, but codes and markers from the two documents are not merged. |
| Release and consultation entries | `prototypes/shared/data/releases.json` | 121 entries in 8 batches | Used only in Analysis D. |
| Text pairs | entries with a witness in the draft (S008) and task lists on both sides, as in `site/assets/alignment.js` | 74 | The earlier document is the reference witness. |

**Normalisation.** Half-width `, ; : ( ) ? !` become full-width; whitespace is removed. This is the site's `normPunct`. Characters are counted as Unicode code points.

**Field hit.** A field hits when it contains at least one dictionary term after normalisation.
- The definition is one field.
- A task list hits when at least one task contains a term. Terms are matched within a task, not across tasks.
- The rule is the one behind the published 114 and 391.

## 2. The 25-term dictionary

`site/data/recount.json` → `field_scope.terms`, unchanged. It is the baseline for every comparison.

Several terms are nested: 网络 occurs inside 网络预约, and 智能 inside 人工智能. So an occupation found by the longer term is always found by the shorter one, and the longer term can never add an occupation on its own.

## 3. Stricter dictionary: inclusion rule

**Include** a term only if it names a specific digital technology, digital system or internet-mediated activity, and it has no common non-digital sense in Chinese occupational prose.

**Exclude, in order of the rule:**
1. **General nouns and modifiers that also denote non-digital things.**
   - 数据: records of any kind.
   - 数字: number or numeral, as well as digital.
   - 网络: any network, including sales and distribution networks.
   - 智能: any "smart" or automated equipment.
   - 平台: lifting, offshore and other physical platforms; Experiment 1 documents these in the draft.
   - 视频: video, including surveillance or broadcast video.
2. **Single characters:** 云.
3. **Terms that also mark physical position or production context.**
   - 在线: also "on-line", as in in-line measurement on a production line.
   - 线上: also "on the line", as in 生产线上.
   - 直播: also television or radio live broadcasting.

**Resulting stricter dictionary (15 terms):** 互联网、网约、网络预约、信息系统、软件、算法、人工智能、区块链、电子商务、电商、编程、虚拟现实、物联网、计算机、电子竞技.

**Records and reporting.**
- After the analysis, read contexts are recorded for the excluded high-frequency terms, so that each exclusion reason can be checked against the draft's actual usage.
- If the draft shows that an exclusion reason does not hold, this is reported as a finding. The dictionary is not changed after seeing the results.
- Both dictionaries are reported. The 25-term dictionary remains the baseline.

## 4. Analysis A: S marker and fields

For S, not S and all occupations, report the number and the within-group share of occupations whose:
- definition hits;
- task list hits;
- either field hits;
- both fields hit;
- definition only hits;
- task list only hits;
- neither field hits.

The analysis is descriptive over the whole draft, a complete administrative population. No significance tests are run; differences are reported as counts and shares.

## 5. Analysis B: dictionary sensitivity

**For each term, report:**
- occurrences in definitions and in tasks;
- definitions and task texts containing it;
- occupations hit in the definition, in tasks and in either field;
- those occupations split into S and not S;
- occupations that only this term finds (either field);
- how many of its occupations are also found by another term.

**Leave-one-term-out.** Recompute Analysis A's core figures without each term in turn.

**Stricter dictionary.** Run Analysis A again with the §3 dictionary.

**Contexts of 数据 in tasks, for description only.** Count the task texts in which 数据 co-occurs with each of the following verb groups:
- recording or keeping: 记录、保存、填写、登记;
- processing or analysis: 处理、分析、挖掘、建模、统计;
- collection: 采集、收集;
- testing or inspection: 检测、检验、测量、监测.

These are string co-occurrences, not judgements of meaning. A task text can fall into more than one group.

## 6. Analysis C: position and closing formulae

**Reproduce the published window results.** A window has the length of the occupation's own definition. It is cut from the concatenated tasks, task by task. Three placements are reported:
- prefix;
- suffix;
- random: 500 runs, seed 20261129, the same linear congruential generator, one start per occupation per run.

**Closing-formula cohort.** An occupation belongs to the cohort when its last task matches `记录.{0,3}保存生产数据` or `记录生产数据`. The cohort is split into:
- exact `记录并保存生产数据`;
- other wordings of "record and keep";
- "record" only.

For each part, report the major group and the S marks.

**Comparisons.** Prefix and suffix hits, shares, and suffix minus prefix, for:
1. the full draft;
2. the draft without the cohort;
3. the cohort alone;
4. the other Major Group 6 occupations.

**Three operations on the formula, reported separately:**
- (i) excluding the cohort's occupations;
- (ii) deleting the matched formula text from the cohort's last tasks and recomputing all windows;
- (iii) redefining the end window to end before the last task, for every occupation.

## 7. Analysis D: revisions by batch

**For each of the 74 pairs, record:**
- batch;
- date;
- document type;
- order relative to the draft;
- name;
- the code in each witness.

**By batch, report:**
- pairs;
- reference tasks;
- tasks paired by number;
- under number pairing, tasks changed by each criterion: raw characters, normalised, and indel similarity below 90;
- in the pairs both methods choose (the 419), the normalised differences, the opening-verb replacements (负责/从事 → 进行) and the replacement-only changes.

The criteria and thresholds are those of the site: acceptance 70, change cut-off 90.

## 8. Verification

- `analyse.mjs` uses the site's own modules.
- `verify.py` reimplements, in Python and without importing any project module:
  - normalisation;
  - field hits;
  - windows and the random generator;
  - task pairing and indel similarity;
  - the closing cohort;
  - batch grouping.
- Every figure used in the text must agree between the two. Disagreements are investigated before any figure is used.
