Repository navigation
German (Hochdeutsch) as a second language.
- A profile records its language as
"language": "de".stylometry.py --language deanalyzes a German corpus, andvoice_profile.py initcarries the language into the profile.voice_check.py --language de,voice_eval.py --language deandcorpus_conflicts.py --language derun the German baseline without a profile. - The language is detected automatically.
stylometry.py,corpus_conflicts.pyandvoice_check.pywithout a profile pick English or German from the text (voice_lang.detect_language, marker words plus umlauts). Too little evidence gives English.--languageoverrides the detection, and a profile keeps its own language.voice_check.pyreports the language it used. - New
references/00-universal-baseline-de.md. Every universal rule runs with German word lists: stance openers, filler openers and chatbot residue, performative verbs,nicht nur … sondern auch, summary openers, evaluative adjectives (stems that match the inflected forms), intensifiers, antithesis, closing caveat, benefit tail and tagline. - New German-only rules in
scripts/voice_rules_de.py:DE_QUOTES,DE_DASH,DE_NUMBER_FORMAT,DE_HEADING_CASE,DE_CALQUE,DE_PARTICIPLE_TAIL,DE_ADDRESS_MIX,DE_GENDER_MIX,DE_GENDER_FORM,DE_CONNECTIVE_DENSITY,DE_ASCII_UMLAUTandDE_SS_SPELLING. Two register keys for German:en_dashandgender_characters. Gender forms are the writer's choice. The default checks only that one text does not mix them. - The measurements handle German: words with umlauts stay whole, German abbreviations (
z. B.,bzw.) and ordinals (am 2. November) no longer split sentences, German function words, hedges, boosters and pronouns, Flesch reading ease with the Amstad formula and the Wiener Sachtextformel, the spaCy modelde_core_news_sm, German passive and nominal style. A German corpus has no contraction measure. - The hook recognizes German prompts and the German phrases that switch the explanation step.
- A star or underscore between two letters is no longer read as Markdown emphasis, so
Kund*innen … Kund*innenkeeps its stars. - 52 German goldens in
eval/goldens/universal-de.goldens.jsonlwith the baselineeval/baselines/universal-de.json, andtests/test_german.py. The checks workflow installsde_core_news_smand runs the German gate. Every English golden gives the same verdict and the same rule hits as in 3.1.1. - The rules come from the German Wikipedia guide to AI-generated text (revision of 2026-10-29), Irrgang et al. (KONVENS 2024) and German typography rules.