@finbheara/names 0.14.0 → 0.16.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.
Files changed (37) hide show
  1. package/README.md +12 -6
  2. package/data/bloom/MANIFEST.json +59 -13
  3. package/dist/chunks/{index-7vvt5hhy.js → index-0wpvbdgh.js} +2631 -1395
  4. package/dist/chunks/{index-7vvt5hhy.js.map → index-0wpvbdgh.js.map} +4 -4
  5. package/dist/chunks/{index-kw69ry3j.js → index-74fyytnh.js} +1333 -20
  6. package/dist/chunks/{index-kw69ry3j.js.map → index-74fyytnh.js.map} +5 -4
  7. package/dist/chunks/{index-pncn9y2r.js → index-a6f2y4aa.js} +2 -2
  8. package/dist/chunks/{index-r5fp3znj.js → index-ky754nsf.js} +7 -7
  9. package/dist/chunks/{index-r5fp3znj.js.map → index-ky754nsf.js.map} +3 -3
  10. package/dist/chunks/{index-ka8nzreg.js → index-tk01chxw.js} +2 -2
  11. package/dist/chunks/{index-kw6gbrnq.js → index-tqdbxd92.js} +2 -2
  12. package/dist/chunks/{index-a15g2gp6.js → index-ye6j60jn.js} +3 -3
  13. package/dist/chunks/phrase-2hj26asc.js +11 -0
  14. package/dist/classifier/index.js +3 -3
  15. package/dist/cli/census.js +4 -4
  16. package/dist/index.js +14 -8
  17. package/dist/index.js.map +1 -1
  18. package/dist/lexicon/index.js +4 -2
  19. package/dist/lexicon/index.js.map +1 -1
  20. package/dist/measure/index.js +4 -4
  21. package/dist/normalize/index.js +9 -5
  22. package/dist/normalize/index.js.map +1 -1
  23. package/dist/types/classifier/bf/filters.d.ts +8 -3
  24. package/dist/types/lexicon/flags.d.ts +13 -5
  25. package/dist/types/normalize/given-families.d.ts +48 -0
  26. package/dist/types/normalize/index.d.ts +1 -0
  27. package/dist/types/normalize/name-kinship.d.ts +12 -8
  28. package/docs/NAME-NORMALIZATION.md +36 -7
  29. package/names.txt +2624 -1389
  30. package/package.json +4 -2
  31. package/src/normalize/given-families.MANIFEST.json +46 -0
  32. package/dist/chunks/phrase-672g18kw.js +0 -11
  33. /package/dist/chunks/{index-pncn9y2r.js.map → index-a6f2y4aa.js.map} +0 -0
  34. /package/dist/chunks/{index-ka8nzreg.js.map → index-tk01chxw.js.map} +0 -0
  35. /package/dist/chunks/{index-kw6gbrnq.js.map → index-tqdbxd92.js.map} +0 -0
  36. /package/dist/chunks/{index-a15g2gp6.js.map → index-ye6j60jn.js.map} +0 -0
  37. /package/dist/chunks/{phrase-672g18kw.js.map → phrase-2hj26asc.js.map} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finbheara/names",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "A curated lexicon of personal, school and place names, the surname-particle vocabulary, a phrase classifier and a person-name normalizer",
5
5
  "keywords": [
6
6
  "names",
@@ -61,7 +61,8 @@
61
61
  "dist",
62
62
  "names.txt",
63
63
  "docs",
64
- "data/bloom/MANIFEST.json"
64
+ "data/bloom/MANIFEST.json",
65
+ "src/normalize/given-families.MANIFEST.json"
65
66
  ],
66
67
  "engines": {
67
68
  "node": ">=22",
@@ -74,6 +75,7 @@
74
75
  "lint:fix": "biome check --write",
75
76
  "test": "bun test",
76
77
  "build": "bun scripts/build.ts",
78
+ "build:blooms": "bun scripts/build-blooms.ts",
77
79
  "names": "bun src/cli/names.ts",
78
80
  "prepublishOnly": "bun run build"
79
81
  },
@@ -0,0 +1,46 @@
1
+ {
2
+ "about": "The extended given-name family list, `given-families.json`: every family the sources below record for English, Irish, Scottish, Welsh, French, Italian, Spanish, German, Dutch and Polish usage. Built by `bun scripts/given-families.ts --ddb <dir> --btn <tsv> --mined <tsv>`, which reads this manifest's `excluded`. The raw sources are not committed; this records where each came from and how it is tiered.",
3
+ "format": "One family per line, `ROOT,FORM:TIER,FORM:TIER,...`, every name NN3 (`lexiconKey`, upper case, letters only). TIER 1 common, 2 uncommon, 3 rare; a pair keeps the lowest tier any source gives it. A family is closed: two forms of one root relate as well as a root and its form.",
4
+ "sources": [
5
+ {
6
+ "name": "given-diminutives.json",
7
+ "what": "this package's curated gate tier: every root, form and spelling",
8
+ "tier": "1; a spelling joins every family its canonical is in, at the canonical's tier",
9
+ "url": null
10
+ },
11
+ {
12
+ "name": "diminutives.db",
13
+ "what": "common English diminutives of formal given names, `female_diminutives.csv` and `male_diminutives.csv`, `Root,Form,...` per line",
14
+ "tier": "1",
15
+ "url": "https://github.com/HaJongler/diminutives.db",
16
+ "commit": "caae757f1f91bce2175a49942a6c466846ade50c",
17
+ "fetched": "2026-10-05",
18
+ "license": "data public domain (the project README)"
19
+ },
20
+ {
21
+ "name": "Behind the Name, names tagged \"diminutives\"",
22
+ "what": "a diminutives listing with columns name, gender, usage, root(s); only rows whose usage names an in-scope language are read, and a root with a space (a compound name) is skipped",
23
+ "tier": "2; 3 where every usage is marked (Rare) or (Archaic)",
24
+ "url": "https://www.behindthename.com/names/tag/diminutives",
25
+ "fetched": "2026-10-05",
26
+ "pages": 7,
27
+ "license": "not recorded; the list keeps only which name is a form of which, no descriptions"
28
+ },
29
+ {
30
+ "name": "issue #59",
31
+ "what": "familiar forms mined from linked identities in a results corpus, with their support",
32
+ "tier": "1 for strong or medium support, 2 for weak",
33
+ "url": "https://github.com/finbheara/names/issues/59"
34
+ }
35
+ ],
36
+ "rules": {
37
+ "surname-only": "A name names.txt holds only as a surname (an entry with L, and no entry on its NN3 key with F, M, N or A) is left out, with every pair through it. names.txt is not re-classed to admit a source's link; a genuine given name is made one there by hand (`bun run names set`) and the list rebuilt. The gate table holds no such name either.",
38
+ "compound": "A name with a space (a compound such as José María) is left out: NN3 compares one given-name field."
39
+ },
40
+ "excluded": {
41
+ "AB": "names.txt holds it only as the place code for Alberta; a given-name entry would collide with the code",
42
+ "MO": "names.txt holds it only as the place code for Missouri; a given-name entry would collide with the code",
43
+ "VIC": "names.txt holds it only as the place code for Victoria; a given-name entry would collide with the code",
44
+ "TETOUAN": "a city the source links as an influence on Titouan, not a given name"
45
+ }
46
+ }
@@ -1,11 +0,0 @@
1
- import {
2
- phraseClassifier2
3
- } from "./index-r5fp3znj.js";
4
- import"./index-kw6gbrnq.js";
5
- import"./index-7vvt5hhy.js";
6
- export {
7
- phraseClassifier2 as phraseClassifier
8
- };
9
-
10
- //# debugId=BD8F5B3E6DE1DCF664756E2164756E21
11
- //# sourceMappingURL=phrase-672g18kw.js.map