Repository navigation
Make verdicts independent of how text was typed (onboarding plan WP-1b) - #48
Merged
Merged
Conversation
Remove curly_apostrophe_pct, fold quote, dash and ellipsis glyphs in character trigrams, count single quotes alike, and add an invariance suite of eleven transforms. Report version 9.0. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01McJCSUfNJo6GvcAup4iJmV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
WP-1b of
plans/retry-wp1-wp10.md. It replaces the deferred z-cap (WP-1). Converting the writer's straight quotes to curly ones moved all seven sample essays from "close" to "somewhat different" or "clearly different". The cause was one metric,curly_apostrophe_pct. There is no cap and no calibration change.curly_apostrophe_pctand the now-unusedCount.APOSTROPHES.apostrophessize count now includes‘, as it already included'and’.bench/invariance.py(prints the table) andtests/test_invariance.py, run with and without spaCy.docs/method.mdand a CHANGELOG entry under a new[Unreleased]section.Evidence
Reproduce (
score -q /tmp/smart, the seven essays with curly quotes):The LLM-likeness verdict is "like the reference" in both.
Invariance suite. Failing cases per transform and side, out of 47 writer and 5 LLM cases: 7 essays plus the 40 held-out
mediumdocuments, and 5 LLM drafts.The full tables are in
bench/invariance.pyoutput.Contrast AUC after removing the metric: 1.0 before and after on
examples/and on themediumcorpus, with and without spaCy. The length-only baselines are unchanged (0.729 and 0.545). The AUC is saturated at 1.0, so it can't show a drop below that. The LLM side of the suite shows the sample drafts keep their verdict bands.Benchmark gate (
--against origin/main --repeat 5): all ok, 1.01x CPU time.Tests
make check: 910 passed, 10 skipped.make demoruns.make dist-checkwas not run, because nothing the wheel ships changed beyond the source edits.Decisions
curly_apostrophe_pctintest_styleprofile.pywere dropped.test_cli_onboarding.py.test_build_speed.py.main.Textobjects are never HTML-converted.Follow-ups
🤖 Generated with Claude Code
https://claude.ai/code/session_01McJCSUfNJo6GvcAup4iJmV
Generated by Claude Code