File size: 5,060 Bytes
1ba413f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Swedish language release: quality contract

Checked on 24 November 2026. Three subsets, four families each, 108 tasks per subset (84 train, 24 eval):

| Subset | Families | What the score establishes |
|---|---|---|
| `swedish-proofreading` | compounds, agreement, word-order, mixed | Minimal correction of planted errors, with all other text and facts protected. Mixed tasks include de/dem. |
| `swedish-rewriting` | calques, plain-language, reader-focus, mixed | Application of an explicit house style, preserving complete propositions and unaffected text. |
| `swedish-copy-briefs` | product, event, service, email | Factual microcopy using a supplied house format, current facts and the correct conditions. Hard tasks mix genres and include stale revisions and untrusted notes. |

## Reward and acceptance boundary

All tasks are in Swedish and marked `languages = ["sv"]`. Each task contains six independent documents. The agent writes one JSON object; each document contributes equally to the task reward.

Editing uses a bounded edit lattice. Literal context must remain unchanged. Each permitted edit can use any explicitly documented alternative. Corrected edit slots earn proportional credit, but changing anything outside those slots gives zero for that document. Copying the erroneous input earns zero; repeated or unrelated text cannot increase the score. NFC/NFD and normal whitespace variations are accepted. Capitalisation, punctuation and words otherwise remain significant.

Copy briefs accept a Cartesian product of the alternatives in the supplied format. A complete, factually compliant brief scores one; an unsupported claim, old price, omitted condition, wrong date, changed negation or extra assertion scores zero for that brief. Partial task credit comes from other independently correct briefs. This is a controlled editorial-format exercise, not open-ended copywriting evaluation.

The standalone reference solvers read the visible files only. They import no generator or validator and do not read hidden answers. Proofreading derives its fixes from the supplied lexicon and grammatical rules; rewriting independently applies the house style; copy briefs independently compose sentences from active source facts.

These are deliberately bounded tasks. They **do not** establish unrestricted writing quality, persuasive power, creativity or coverage of all valid Swedish paraphrases. The original Skrivbench prompts/preferences are not imported as verified labels. The ambiguous single-reference cloze task is not included. No human expert review or model-training improvement is claimed.

## Holdouts and provenance

The curriculum re-engineers the project-owned `sv_reparera`, `sv_naturlig` and `klarsprak_lix` ideas. Copy briefs take inspiration from Skrivbench's commercial/editing genres; their text, briefs and checks are new synthetic material. No third-party news or literary corpus is redistributed.

Train and eval use disjoint lexical/content packs, names, months, topics and product/event vocabularies. All generated source records are checked for exact overlap across splits. Grammar rules and house-style formats are shared: this tests transfer to held-out content, not unseen grammatical constructions. Public eval files are inspectable and are not a private benchmark.

General editorial guidance: [Isof's writing rules](https://www.isof.se/snabba-skrivregler), [concrete words and active verbs](https://www.isof.se/svenska-spraket/klarsprak/klarsprakshjalpen/skriv-klarsprak/anvand-ord-som-lasarna-forstar). The exercise-specific house styles are supplied, deterministic contracts; preferences are not presented as universal grammatical prohibitions.

## Checked evidence

- 540 generated tasks: independent oracle reward 1, junk reward 0, deterministic generation; zero failures.
- 324 exported Harbor tasks: oracle 1, no-op 0; zero failures.
- 12 hard tasks in Docker, one per family, network disabled: oracle 1, no-op 0.
- 36 independently hand-written examples, three per family; malformed answers, overcorrection and meaning changes rejected.
- Release-wide adversarial audit across all 324 published tasks: 13,608 document attacks rejected, 10,826 explicitly allowed alternatives accepted, 216 source-copy answers rejected, 144 partial-credit cases and 1,944 malformed-answer checks passed. No exact source-record overlap between train/eval.
- The original 2,052 task payloads are byte-identical to the previous validated release, except `task.toml` language metadata. Their manifest fields are retained; `languages` and `task_meta` are added.

Reproduce:

```sh
for env in swedish_proofreading swedish_rewriting swedish_copy_briefs; do
  python3 tools/selftest.py "$env" 60
  python3 "tests/test_$env.py"
done
python3 tools/audit_swedish.py
python3 tools/check_swedish.py
python3 tools/check_swedish.py --docker
```

The adversarial suite is a release gate, not proof that no further weakness can exist. General Swedish writing still requires independent human assessment beyond this deterministic contract.