@mailwoman/neural-weights-en-us 7.8.1 → 8.0.0

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/fst-en-us.bin ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/neural-weights-en-us",
3
- "version": "7.8.1",
3
+ "version": "8.0.0",
4
4
  "description": "Mailwoman neural-classifier weights for locale 'en-us'. Data-only package — loaded by @mailwoman/neural at runtime.",
5
5
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
6
6
  "repository": {
@@ -15,6 +15,7 @@
15
15
  "calibration.json",
16
16
  "calibration-per-locale.json",
17
17
  "postcode-us.bin",
18
+ "fst-en-us.bin",
18
19
  "anchor-lexicon-v1.json",
19
20
  "country-surface-lexicon-v1.json",
20
21
  "README.md",
@@ -203,3 +203,17 @@ if (existsSync(POSTCODE_BIN_DEST)) {
203
203
  }
204
204
  console.log(`built ${POSTCODE_BIN_DEST}`)
205
205
  }
206
+
207
+ // Per-locale FST gazetteer (FST-distribution arc, 2026-07-25): symlink the shared build artifact
208
+ // ($MAILWOMAN_DATA_ROOT/wof/fst-per-locale/) into the package so `resolveWeights` surfaces `fstPath`
209
+ // in dev and the runtime pipeline can auto-wire the gazetteer + street-context gate. The publish
210
+ // flow stages the real binary (release-sequenced).
211
+ const FST_SRC = dataRootPath("wof", "fst-per-locale", "fst-en-us.bin")
212
+ const FST_DEST = resolve(PKG_DIR, "fst-en-us.bin")
213
+
214
+ if (existsSync(FST_SRC)) {
215
+ linkForce(FST_SRC, FST_DEST)
216
+ console.log(`linked fst-en-us.bin ← ${FST_SRC}`)
217
+ } else {
218
+ console.error(`WARNING: missing ${FST_SRC} — the FST gazetteer default will resolve OFF for this locale.`)
219
+ }