Repository navigation
Say how many names to give Parser.suggest(): a sample of a few hundred per source - #1443
Merged
Merged
Conversation
…d per source Adds 'How many names to give it' to docs/suggest.rst, points getting-started at it, and records the measurement past 200 names in decisions/group-suggestion (2026-11-16, #1442). Co-Authored-By: Claude Fable 5.2 <[email protected]>
…st is about a parse - 'more adds nothing' and 'costs less than parsing' were stronger than the record: bylines written given first under a family-first base kept improving to 2,000 names, and a capitals list costs more than a parse. - The decisions entry named nine rows as the eight that never settle, and read a right vote as a given-name vote; #1442 joins the Open paragraph. Co-Authored-By: Claude Fable 5.2 <[email protected]>
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.
docs/suggest.rstsaid what the floor is (two names) and, in its last section, how many names each kind of list took. It never answered the question a caller starts with, and said nothing about very long lists.What changed
docs/suggest.rst: a new section, "How many names to give it", ahead of "Reading the result". Under five names often gets no suggestion, which is safe; fifty settles most kinds of list; a few hundred settles nearly every kind; more rarely helps and can hurt. For a large dataset it shows sampling 300 names from a source (a doctest), says a sample is quicker but that speed is not the main reason, names the one kind of list more names kept helping (bylines written initials first under a family-first base), and says to split a list that mixes sources.docs/getting-started.rst: its closing pointer now leads to that section.docs/design/decisions/group-suggestion.md: a Standing line and a dated Log entry holding the measurement the section rests on.The measurement
uv run python tools/differential/suggest_measure.py --sizes 5,10,20,50,100,200,500,1000,2000 --trials 200on master05689a4c. Over the order table's 120 rows (30 populations, each written both ways under both bases), the size from which a row is right in every trial at every larger size:So 105 of 120 are settled by 50 names and 110 by 200.
The advice to sample, and the sentence that a very long list can be read less well than a sample of it, rest on #1442: one same-order row falls below 95% from 500 names, because the order is decided among the names that vote. The advice holds before and after any fix to that issue. This PR does not change the suggester and does not close #1442.
Checked
PolicyPatch(name_order=FAMILY_FIRST).sphinx-build -b htmland-b doctestpass with no warning;tools/docs_scan.py suggest.rstreports no finding;tests/v2/test_design_docs.pyandtest_doc_citations.pypass.Review
A design-docs review found two claims stronger than the record and two slips in the decisions entry; the second commit corrects them. The same slip (a right vote read as a given-name vote) is corrected in #1442's body.
🤖 Generated with Claude Code