Commit 49c67a2
Document that an ambiguity records a decision, not a word
The constraint that shaped the two new emitters is not obvious from
either side, and ORDER is still reserved -- whoever wires it next needs
the rule, and users need to know why a name containing an ambiguous
word can report nothing.
Three places, each for its own audience:
- concepts.rst, in the Honest ambiguity essay: an empty ambiguities
means the parse faced no fork, not that every word was unambiguous.
Uses the two cases that surprised me -- 'do' mid-name in "Joao da
Silva do Amaral de Souza", where nothing chooses, and "Ma, Jack",
where the comma settles it before the question arises.
- AmbiguityKind's docstring, which is what modules.rst renders into the
API reference: the same point in two sentences, for a reader who
never opens the concepts page.
- AGENTS.md: the implementer rule. Emit at the decision site, never by
scanning for a vocab:*-ambiguous tag; report both directions of a
two-way fork; register a trigger in _AMBIGUITY_TRIGGERS and pin the
kinds in the case table. Notes that the decision site already holds
the token index and detail text a tag scan would have to rebuild.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent ed71eb4 commit 49c67a2
3 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
157 | 167 | | |
158 | 168 | | |
159 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
| |||
0 commit comments