Skip to main content

Leicht·Facile

CI Release PyPI package Python

Leicht·Facile drafts easy-language versions of Swiss official texts (German Leichte Sprache and Einfache Sprache, French FALC; Italian follows) with a large language model, and proves with code that no deadline, amount or phone number got lost. It works with any OpenAI-compatible endpoint (a provider's API, a gateway or a model server of your own) and was built and evaluated with Apertus, the open Swiss model. It is a drafting assistant for the people who write official texts, from trained easy-language writers to case workers, not a replacement for their review or for the test by readers from the target group.

About 1.25 million adults in Switzerland aged 16 to 65 (22 percent) have low reading skills (Swiss Federal Statistical Office). The same survey, the OECD's Survey of Adult Skills (PIAAC 2022/23), finds 22 percent in Germany (about 12 million adults) and 28 percent in France (about 11 million). None of them should be excluded from the official letters that decide their money, deadlines and rights.

A sentence like this one from a letter, in "Amtssprache" and with three negations, loses them, although the reader has only one question: do I get my money back?

Before: the letter After: easy language
Es ist nicht unwesentlich, dass Kosten,
die nicht fristgerecht geltend gemacht werden,
nicht vergütet werden können.
Das ist wichtig:
Melden Sie Ihre Kosten rechtzeitig.
Sonst bekommen Sie kein Geld zurück.

Two use cases: a canton's letters and web pages (use-case-canton.md), and easy-language letters that accompany decisions of child and adult protection authorities (KESB) and courts, texts that may never leave the authority (decision mode v1; use-case-decisions.md). Further use cases, from patient letters and lease terminations to penal orders, payment orders and tax letters, are sketched in use-cases.md. Most of them are under official, medical or tax secrecy and may not go to a chatbot on a foreign cloud: for them, the model has to run where the organisation controls it, and Apertus fits best (why).

The language model does everything that needs language understanding. Plain code does everything that can be counted.

  1. Understand (the model): the document becomes a fact sheet: the reader's core questions, every fact with its exact value, hard words, passages that can go. Code adds every date, amount and contact the model missed.
  2. Write (the model): a draft in easy language, every sentence linked to the source sentences it comes from, every omission explained.
  3. Check (code): 45 deterministic rules for German and 41 for French from the published Swiss guidelines (sentence length, passive, genitive, numbers, Swiss spelling, Mediopunkt, ...) and an exact check of every fact value in both directions (no value lost, no value invented), in milliseconds, without a model.
  4. Judge (a second model, ideally a larger one): meaning only: distorted facts, invented statements, metaphors, unclear references.
  5. Repair (the model): only the flagged sentences, until no blocking finding is left (at most 3 rounds); then one sentence for each must-keep value still missing (at most 10), checked like the rest.
  6. Review (human): source and draft side by side, provenance, fact checklist, approve, edit or reject each block, export with an audit trail.

The review page: the source on the left, the easy-language draft in the middle, the must-keep facts on the right

The review page with the German example letter (team-written): the source with what was left out and why, the draft with its versions and findings, and the must-keep facts.

Why not one chatbot prompt?

Ask a chatbot to "rewrite this in Leichte Sprache" and you get a text, nothing more:

  • no fact contract: nothing says which deadlines, amounts and contacts must survive;
  • no provenance: no sentence points back to the source sentence it comes from;
  • no omission log: what was left out, and why, is not recorded;
  • no independent check: nothing but the model itself looks at the result.

The chatbots people reach for also run on foreign clouds. Leicht·Facile adds those four things, a review workflow and an audit trail, and runs on infrastructure the organisation controls.

How we measure the difference. The evaluation compares the full pipeline (P2) with single prompts on the same model (P as in pipeline, not a language level; use-case-canton.md §4). P0 is the plain chatbot prompt. The fairer baseline is a strong single prompt: a published Leichte Sprache prompt from a Swiss public administration (simply-simplify-language, MIT), here in its "complete" mode. Final run: 20 held-out pairs of real German texts, published by Swiss cantons and federal offices with their easy-language versions, on the CSCS endpoint, 12 October 2026 (all numbers: evaluation.md).

A strong single prompt Leicht·Facile
Must-keep facts found 82 % 100 %
Hard facts lost without a trace 15 % (33 % in its default mode) none: it lists every one it misses
Invented values, per 100 blocks 0.0 0.0
Rule errors, per 100 blocks 15.0 3.7

Why Apertus for confidential texts

For a public web page, any good model would do, and Leicht·Facile works with any of them. A letter that names a person is under official secrecy (StGB art. 320), a patient letter under medical secrecy (StGB art. 321), a tax letter under tax secrecy (DBG art. 110). Four conditions follow, and of the models we know, only Apertus meets all four:

Condition Rules out Apertus
The text stays inside the organisation (secrecy law; the cantonal data protection commissioners' resolution of November 2025) Chatbots and model APIs on foreign clouds Runs on-premise or air-gapped: the 8B on one 24 GB GPU with the official vLLM image (run by the team on an NVIDIA L4); Swisscom and Infomaniak serve the 70B in Switzerland
The organisation runs the model itself Closed models Open weights
The organisation can account for what the model learned Open-weight models that keep their training data secret (Llama, Gemma, Qwen, Mistral) Open training data and code; website opt-outs honoured, also for older crawls
The model is Swiss Fully open models built and trained abroad (EuroLLM, SmolLM3) Built by EPFL, ETH Zurich and CSCS, trained in Lugano; German, French and Italian, with Swiss German and Romansh data

The Canton of Ticino already runs Apertus in-house to translate sensitive government documents. Tokens are nearly free (about 1.6 US cents per page for the full pipeline at Public AI's list prices, evaluation.md); on own hardware the GPU is the cost. The legal basis, the sources and the use cases: use-cases.md §2.

Quick start

Requirements: uv (it brings Python 3.12 or newer when needed), and an OpenAI-compatible model endpoint with its key: Apertus on the CSCS inference API or the Public AI gateway, a model server of your own (vLLM, llama.cpp, Ollama) or a provider's API.

Run it straight from PyPI, without installing anything:

uvx leichtfacile setup        # the endpoint and its key; then the language models
uvx leichtfacile serve        # starts the app and opens http://127.0.0.1:8000

On Windows, if uvx stops with failed to hardlink file ... (os error 396), run uvx --link-mode=copy leichtfacile setup: uv links files from its cache, and Windows refuses another link to a file that already has one in a OneDrive folder (quickstart.md).

Or clone the repository and run it from the checkout:

git clone https://github.com/bobrovsky420/leicht-facile.git
cd leicht-facile
uv run leichtfacile setup     # the first uv run installs the app and the language models
uv run leichtfacile serve

setup lists the presets (cscs and apertus for Apertus, anthropic, openai, local for llama.cpp, ollama, vllm) and any other endpoint; the rarely used presets mistral, groq and huggingface are not in the list but take setup <name>; setup cscs asks for the CSCS key alone, setup ollama for the model alone, and setup anthropic (or openai) for the key and one of a few models it offers, any other model the provider lists being the last option. It ends by offering the spaCy models for German and French, about 90 MB from GitHub (leichtfacile models gets them later; a checkout has them from uv.lock). With a preset's key in the environment or a .env (CSCS_API_KEY, PUBLICAI_API_KEY), the app needs no setup: leichtfacile models once (not in a checkout), then serve. leichtfacile config show lists every setting and where it comes from; configuration.md explains them. Installing the command, the command line alone, a server for an organisation, an offline install, running a model yourself, reaching the app from other machines and what to do when it does not start: quickstart.md.

Model tiers with Apertus: by default the 8B reads, writes and repairs, and the 70B judges (when the endpoint serves it; otherwise the writer judges). models = { writer = "swiss-ai/Apertus-v1.5-70B" } runs every stage on the 70B; models = { understand = "swiss-ai/Apertus-v1.5-70B" } lets the 70B read (the fact sheet) and the 8B write. evaluation.md compares the three.

Your first draft

The interface speaks English, German or French (switch at the top right).

1. Start a draft. Before the first draft, the start page offers the example letters: a municipality's letter about premium reduction in German and in French, and a decision of a child and adult protection authority (team-written, described in the examples' README.md). Click one to open the New draft form with it filled in, or click New draft and paste a text, enter a web address or upload a file (PDF, HTML, text or Markdown). Choose the language (or let it be detected), the level (A2 Leichte Sprache or FALC, B1 Einfache Sprache or langage clair; the level names the rule set, not a measured reader level) and the pipeline (P2 full by default), and click Create draft. The model answers live: a run takes a few minutes.

The start page before the first draft: the three example letters and New draft

The New draft form with the German example letter pasted, and the settings: language, level and pipeline

2. Follow the stages. The page updates by itself: Read, Write, Check, Judge and Repair, each with its result as soon as it is done (the fact sheet, then each draft version). When the pipeline is done, the review page opens.

3. Review and export. The review page (screenshot above, below "How it works") shows the source, the draft and the must-keep facts. Click a block or a fact to see where it comes from. Approve, edit or reject each block (or Approve all undecided), tick Review complete and click Save review. Reader view shows the text as a reader gets it; Export writes it as Markdown, HTML or Word, or the whole job as an audit bundle (JSON).

Check my text runs the rule checker on any text you paste, without a model and without storing it.

Sovereign deployment

Where the model runs How
a) On-premise A model server in the organisation's network, for example Apertus 1.5 8B on vLLM with the official image on one GPU with 24 GB or more (measured on an NVIDIA L4: aws-l4-2026-10-10/); point the endpoint's url at it
b) Air-gapped As (a), and the app installed offline from a folder of wheels collected on a connected machine, the spaCy models unpacked from the same folder (quickstart.md). The UI assets are in the package: no CDN, no telemetry, no installs at runtime
c) Sovereign Swiss cloud Point the endpoint's url at a Swiss-operated endpoint (Swisscom and Infomaniak serve Apertus 70B); the reported numbers come from CSCS in Lugano

Documents and review records stay in a SQLite database in a folder the organisation controls (data.dir). At runtime the app contacts only the model endpoint, and a web page's server when a user enters a URL: no telemetry, no CDN, no login provider (architecture.md §10). Which texts need this, and why Apertus fits them best: Why Apertus for confidential texts.

Documentation

  • quickstart.md: installing and starting the app, the model endpoints, servers, offline installs, development
  • configuration.md: the settings, the saved endpoints and their keys, every setting with its default
  • architecture.md: design and architecture
  • ui-design.md: the web UI's specification: tokens, components, screens, accessibility
  • rules.md: the rule catalogue the checker implements
  • prompts.md: prompt design and change log
  • sources.md: reference pairs, demo documents, licences
  • use-case-canton.md: a walkthrough for a cantonal administration
  • use-case-decisions.md: letters that accompany decisions of child and adult protection authorities and courts (partly planned)
  • use-cases.md: all use cases at a glance; the further ones sketched with the checks they need
  • image-input.md: what Apertus 1.5 reads from a scanned letter, by kind of value
  • hard-texts.md: hard words and sentences for tests
  • evaluation.md: the evaluation tables, per language and setup
  • model-comparison.md: every evaluation run side by side, Apertus on CSCS, Qwen on a laptop, gpt-oss on Groq and the runs to come

References

  • Swiss Federal Statistical Office (FSO), first results of PIAAC 2022/2023, Neuchâtel 2024, section 3.3: 1.25 million adults aged 16 to 65 (22 percent) with low literacy, level 1 or below.
  • OECD, Survey of Adult Skills 2023, country note Germany (in German), December 2024: 22 percent of adults aged 16 to 65 at or below level 1 in literacy; OECD average 26 percent.
  • OECD, Survey of Adult Skills 2023, country note France (in French), December 2024: 28 percent of adults aged 16 to 65 at or below level 1 in literacy; OECD average 26 percent.

Licence

Code: Apache License 2.0, see LICENSE. Texts from cantonal and federal web pages are not part of the repository; the evaluation fetches them from their URLs (sources.md §4).

Metadata

Release files for leichtfacile 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for leichtfacile 0.7.1
File Interpreter ABI Platform Actions
leichtfacile-0.7.1-py3-none-any.whl Python 3 none any Details for leichtfacile-0.7.1-py3-none-any.whl

Release files / leichtfacile-0.7.1-py3-none-any.whl

Download URL leichtfacile-0.7.1-py3-none-any.whl
Size 716.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9dbae178054d78e2a116ce891675a03f63160d2708474df4e621ef0155a8f56
BLAKE2b-256 checksum
How to use checksums
054c98e17a0ca8da8e639b7d79989eafe4299a44461cb5e08ddaa65fcbe2b384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for leichtfacile 0.7.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page