MVP 0.93 - stabile, aber Writing Profile ohne erkennbaren Nutzen

This commit is contained in:
Lars committed 2026-08-27 10:03:05 +02:00
1 parent 53b1eff833
commit f17b3083e8
56 files changed
+5366 -784

No files matched your search

+18 -2
View File
@@ -28,8 +28,24 @@ def main() -> None:
title, body = shape_journal("Markttag", joined, turns)
expect(title == "Markttag", "title stays")
expect(body.count("\n\n") == 2, "paste becomes one paragraph per turn")
expect("Kirschen" in body and "Hafen" in body, "wording of a paste is kept")
expect("Kirschen" in body and "Hafen" in body, "model wording is kept")
expect(body != "\n\n".join(turns), "accepted model text is not replaced by source turns")
source_typo = ["ich bin dan zum markt gegangen und da war es zimlich voll"]
rewritten = "Ich ging dann zum Markt, auf dem es ziemlich voll war."
_, kept_rewrite = shape_journal("Markttag", rewritten, source_typo)
expect("ziemlich" in kept_rewrite, "corrected spelling stays")
expect("zimlich" not in kept_rewrite, "source typo is not restored")
expect(kept_rewrite.startswith("Ich ging"), "corrected sentence structure stays")
expect("Markt" in kept_rewrite, "capitalization stays corrected")
_, punct = shape_journal("Tag", "Ich ging zum Markt.", ["ich ging zum markt"])
expect(punct == "Ich ging zum Markt.", "corrected punctuation and casing are not reset")
fallback_body = "\n\n".join(turns)
_, fallback = shape_journal("Ein Tag", fallback_body, turns, source="fallback")
expect("Kirschen" in fallback and "Hafen" in fallback, "fallback still contains every user source")
expect("Markt" in fallback, "fallback keeps first source")
blob = (
"Heute war der Markt voll. Ich bin früh gegangen. "