Commit 1cf8d42
Prime a named spiro component's replacement prefixes
In spiro[indoline-3,4'-cyclopentane] the side ring is the primed
component, so its skeletal-replacement locants are primed with it. Both
priming helpers were guarded on the literal `spiro[cyclopropane-`, so
every other side ring kept unprimed locants and the heteroatoms read
back on the wrong ring: a spiro indoline carrying two ring nitrogens
came out as `1,3-diaza` rather than `1',3'-diaza`. The regex also only
matched a bare `oxa`/`aza`/`thia`, so multiplied forms were missed
entirely.
The guard cannot simply be dropped. `6,8-diazaspiro[4.4]nonane` numbers
the whole spiro system once and its prefixes must stay unprimed; only a
descriptor that names its components primes the second one, and the
prime inside the bracket tells the two apart.
Nor can that test be made against the whole name. A name can hold both
forms at once, and checking globally primed the `6-aza` of an
`azaspiro[3.3]heptane` sitting beside a `spiro[indoline-3,1'-
cyclohexane]` -- caught as the one regression in the first measurement.
The inline test is now made against the bracket each prefix actually
precedes.
30 corpus names fixed, 0 broken. Mismatch counts are unchanged at 7 and
0, because every one of these was already abstaining rather than being
refuted -- the audit could not model the spiro side ring to begin with.
1299 tests pass.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent dbe1432 commit 1cf8d42
2 files changed
Lines changed: 65 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
159 | 169 | | |
160 | 170 | | |
161 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
162 | 176 | | |
163 | 177 | | |
164 | 178 | | |
165 | 179 | | |
166 | 180 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
170 | 211 | | |
171 | 212 | | |
172 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1899 | 1899 | | |
1900 | 1900 | | |
1901 | 1901 | | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
1902 | 1921 | | |
1903 | 1922 | | |
1904 | 1923 | | |
| |||
0 commit comments