@radsoft/markbase 2026.11.2 → 2026.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -9
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -157,15 +157,26 @@ Keep the key server-side. It's a secret; don't ship it to the browser.
|
|
|
157
157
|
|
|
158
158
|
---
|
|
159
159
|
|
|
160
|
-
##
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
`clearanceBatch` options
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
160
|
+
## Opt-in phonetic clearance
|
|
161
|
+
|
|
162
|
+
Starting with SDK `2026.11.2`, pass `phonetic: true` in `clearance` or
|
|
163
|
+
`clearanceBatch` options to add whole-name ASCII phonetic matching. Omit it or use
|
|
164
|
+
`false` for spelling-only behavior. One name still uses one monthly request;
|
|
165
|
+
batches require Launch or Scale.
|
|
166
|
+
|
|
167
|
+
Read `matching.phonetic_status` and each match's `signals.phonetic` separately from
|
|
168
|
+
`similarity` and `risk`, which retain their spelling-based meaning. Names with
|
|
169
|
+
digits, non-ASCII characters, more than 12 tokens, or no token of at least four
|
|
170
|
+
letters return `not_evaluated` and retain spelling results. A changed token must
|
|
171
|
+
have at least four letters; short tokens must match literally in the same position.
|
|
172
|
+
`matching.truncated` reports a phonetic retrieval cap or hydration budget being
|
|
173
|
+
reached; `false` does not establish exhaustive coverage.
|
|
174
|
+
|
|
175
|
+
An unavailable opt-in request returns 503 without silently switching modes.
|
|
176
|
+
Admission failures do not consume monthly quota. Accepted batches count even if a
|
|
177
|
+
search fails and are never retried automatically. See the
|
|
178
|
+
[phonetic contract](../docs/phonetic-clearance.md) for response evidence, ranking,
|
|
179
|
+
and limits. Phonetic evidence does not establish legal availability.
|
|
169
180
|
|
|
170
181
|
## Reference
|
|
171
182
|
|
package/dist/types.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export interface Suggestion {
|
|
|
55
55
|
export interface ClearanceOptions {
|
|
56
56
|
trademarkClass?: string | number;
|
|
57
57
|
limit?: number;
|
|
58
|
-
/**
|
|
58
|
+
/** Opt-in whole-name ASCII phonetic matching; unavailable mode returns 503. Omit for spelling-only matching. */
|
|
59
59
|
phonetic?: boolean;
|
|
60
60
|
}
|
|
61
61
|
export interface ClearanceMatching {
|
package/package.json
CHANGED