@finbheara/domain 0.60.1 → 0.62.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.
@@ -0,0 +1,7 @@
1
+ export { AMBIGUOUS_PRINTS, PLACE_NODES } from "./place-tree.ts";
2
+ export { isFluffWord, trailingFluffRun } from "./school-fluff-vocabulary.ts";
3
+ export { joinedPrefix } from "./school-fused-prefix.ts";
4
+ export { GLUED_INSTITUTION_SUFFIXES, INSTITUTION_PHRASES, isInstitutionWord, truncatedInstitution, } from "./school-institution-vocabulary.ts";
5
+ export { opensLocation, printZones } from "./school-location.ts";
6
+ export { promotedKey, schoolTokens } from "./school-tokens.ts";
7
+ export type { SchoolToken } from "./school-tokens.ts";
@@ -1,3 +1,3 @@
1
- export declare const PLACE_TOWNS_TREE = "57060717f1ae385c7407ea21123ad1765d5cd4b6e87b90e71d72c7c9f566582e";
1
+ export declare const PLACE_TOWNS_TREE = "908f6a4ee5f0de7fa92fe16a31df6c57903a7de4c2f44003653349e95ac0c74d";
2
2
  export declare const PLACE_TOWNS_SOURCES: Readonly<Record<string, string>>;
3
3
  export declare const PLACE_TOWNS: Readonly<Record<string, string>>;
@@ -1,4 +1,4 @@
1
1
  import type { PlaceWithin } from "./place-types.ts";
2
- export declare const PLACE_WITHIN_TREE = "57060717f1ae385c7407ea21123ad1765d5cd4b6e87b90e71d72c7c9f566582e";
2
+ export declare const PLACE_WITHIN_TREE = "908f6a4ee5f0de7fa92fe16a31df6c57903a7de4c2f44003653349e95ac0c74d";
3
3
  export declare const PLACE_WITHIN_SOURCES: Readonly<Record<string, string>>;
4
4
  export declare const PLACE_WITHIN: Readonly<Record<string, PlaceWithin>>;
@@ -76,6 +76,7 @@ export declare function createPlaceReader(options?: PlaceReaderOptions): {
76
76
  placeParts: (print: string) => Place[];
77
77
  placeWindows: (text: string, ctx?: string | PlaceContext) => PlaceWindow[];
78
78
  oireachtasOfRegion: (regionId: string | undefined) => string | undefined;
79
+ ownRegionCountries: () => ReadonlySet<string>;
79
80
  regionOfOireachtas: (code: string) => Place;
80
81
  placeStats: () => {
81
82
  hits: number;
@@ -97,6 +98,7 @@ export declare function areAllPlaceTokens(tokens: readonly string[], off?: numbe
97
98
  export declare function placeFromId(id: string): Place;
98
99
  export declare function placeWindows(text: string, ctx?: string | PlaceContext): PlaceWindow[];
99
100
  export declare function placeParts(print: string): Place[];
101
+ export declare function ownRegionCountries(): ReadonlySet<string>;
100
102
  export declare function oireachtasOfRegion(regionId: string | undefined): string | undefined;
101
103
  export declare function regionOfOireachtas(code: string): Place;
102
104
  export declare function placeStats(): {
@@ -11,6 +11,7 @@ export declare const SCHOOL_FLUFF_VOCABULARY: ReadonlyMap<string, SchoolFluff>;
11
11
  export declare function schoolFluff(text: string): SchoolFluff | undefined;
12
12
  export declare function isFluffWord(token: string): boolean;
13
13
  export declare function isTruncatedFluff(token: string): boolean;
14
+ export declare function isProperPrefixOfAny(token: string, words: Iterable<string>): boolean;
14
15
  export declare const FLUFF_PHRASES: readonly string[];
15
16
  export declare function isFluffPhrasePrefix(text: string): boolean;
16
17
  export declare function trailingFluffRun(tokens: readonly string[], distinctive: (token: string) => boolean): number;
@@ -13,6 +13,7 @@ export interface SchoolInstitution {
13
13
  export declare const SCHOOL_INSTITUTION_VOCABULARY: ReadonlyMap<string, SchoolInstitution>;
14
14
  export declare function schoolInstitution(text: string): SchoolInstitution | undefined;
15
15
  export declare function isInstitutionWord(text: string): boolean;
16
+ export declare function namesInstitution(text: string): boolean;
16
17
  export declare function institutionCanonical(text: string): InstitutionType | undefined;
17
18
  export declare function institutionLabel(type: InstitutionType): string;
18
19
  export declare const INSTITUTION_TYPES: readonly InstitutionType[];
@@ -1,5 +1,6 @@
1
1
  export declare const SCHOOL_FLUFF_WORDS: ReadonlySet<string>;
2
2
  export declare const SCHOOL_GENERIC_NAME_PARTS: ReadonlySet<string>;
3
3
  export declare function hasSpecificToken(tokens: Iterable<string>): boolean;
4
+ export declare function isFluffOrFragment(token: string): boolean;
4
5
  export declare function foldSchoolName(raw: string): string;
5
6
  export declare function schoolKeyTokens(raw: string): string[];
@@ -0,0 +1 @@
1
+ export declare function isSchoolVocabularyWord(token: string): boolean;
@@ -6,8 +6,11 @@ export { schoolEncoder } from "./school-encoder.ts";
6
6
  export type { SchoolEncoderOptions } from "./school-encoder.ts";
7
7
  export { compareSchoolNames, compareSchools } from "./school-identity.ts";
8
8
  export type { IdentityResult, IdentityVerdict } from "./school-identity.ts";
9
- export { foldSchoolName, hasSpecificToken, schoolKeyTokens } from "./school-match-key.ts";
10
- export { NOT_A_SCHOOL, SCHOOL_NAME_EXCEPTIONS, } from "./school-exception-vocabulary.ts";
9
+ export { foldSchoolName, hasSpecificToken, isFluffOrFragment, schoolKeyTokens, } from "./school-match-key.ts";
10
+ export { namesInstitution } from "./school-institution-vocabulary.ts";
11
+ export type { InstitutionType } from "./school-institution-vocabulary.ts";
12
+ export { isSchoolVocabularyWord } from "./school-vocabulary-word.ts";
13
+ export { NOT_A_SCHOOL, notASchoolIn, SCHOOL_NAME_EXCEPTIONS, } from "./school-exception-vocabulary.ts";
11
14
  export { SCHOOL_CELL_OWN_SENTINELS, SCHOOL_CELL_SENTINELS, schoolCellSentinelOf, } from "./school-cell-sentinels.ts";
12
15
  export { SHARED_ROW_SENTINELS } from "./row-sentinels.ts";
13
16
  export type { RowSentinel } from "./row-sentinels.ts";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finbheara/domain",
3
- "version": "0.60.1",
3
+ "version": "0.62.0",
4
4
  "description": "Places, CLRG regions and events, school names and the links between schools, ages, dances, competition titles, codes and schedules, and a person's print in its role, as they are printed: read, compared and told apart",
5
5
  "keywords": [
6
6
  "places",
@@ -85,6 +85,10 @@
85
85
  "types": "./dist/types/school-graph.d.ts",
86
86
  "default": "./dist/school-graph.js"
87
87
  },
88
+ "./internals": {
89
+ "types": "./dist/types/internals.d.ts",
90
+ "default": "./dist/internals.js"
91
+ },
88
92
  "./package.json": "./package.json"
89
93
  },
90
94
  "files": ["dist/*.js", "dist/chunks/*.js", "dist/types/**/*.d.ts", "README.md", "LICENSE"],
@@ -96,14 +100,11 @@
96
100
  "access": "public"
97
101
  },
98
102
  "scripts": {
99
- "build": "bun scripts/build.ts",
103
+ "build": "bun ../../tools/bundle/build-domain.ts",
100
104
  "guard": "bun scripts/guard-tarball.ts",
101
- "prepublishOnly": "bun scripts/build.ts && bun scripts/guard-tarball.ts"
105
+ "prepublishOnly": "bun ../../tools/bundle/build-domain.ts && bun scripts/guard-tarball.ts"
102
106
  },
103
107
  "dependencies": {
104
108
  "@finbheara/names": "0.31.0"
105
- },
106
- "devDependencies": {
107
- "typescript": "7.0.2"
108
109
  }
109
110
  }