@instruments/taxonomy 6.0.0 → 6.2.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/README.md +8 -0
- package/dist/axes/palette.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19 -21
- package/dist/spelling-key.d.ts +9 -3
- package/dist/term.d.ts +1 -1
- package/dist/v1.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
The canonical, data-only interiors and architecture terminology corpus.
|
|
4
4
|
|
|
5
|
+
## 6.2.0 release notes
|
|
6
|
+
|
|
7
|
+
New alternate labels: Monochromatic on Monochrome (`yhmf2sf`), Polychromatic on Polychrome (`m4n78pc`) and PU on Polyurethane (`jaysth9`). `spellingWords(phrase)` gives the words a spelling key closes up. Nothing breaks; the corpus revision changes.
|
|
8
|
+
|
|
9
|
+
## 6.1.0 release notes
|
|
10
|
+
|
|
11
|
+
Breaking: `spellingKey` keeps only letters and digits, so every spelling key is one path segment (`herringbone / chevron` is `herringbonechevron`). Recompute any stored spelling key. Two reviewed phrases that now share a key were merged: `herringbone / chevron` resolves to Zigzag (`btpa8p5`), the parent of Herringbone and Chevron, like `herringbone-chevron` already did. Taxonomy figures are counted from their data.
|
|
12
|
+
|
|
5
13
|
## 6.0.0 release notes
|
|
6
14
|
|
|
7
15
|
Removes `CONCEPT_ASSESSMENT_POLICIES`, `ASSESSMENT_POLICY_REVISION`, `ASSESSMENT_AUTHORITY_REFERENCES` and their types (`AssessmentEvidenceRoute`, `ConceptAssessmentPolicy`, `MaterialApplicability`). How a concept can be evidenced is structure, not words: import them from `@instruments/criteria`, their only home. The corpus is unchanged.
|
package/dist/axes/palette.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ interface LabelsBySlug {
|
|
|
11
11
|
readonly [key: string]: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const PALETTE_LABEL_OVERRIDES: LabelsBySlug;
|
|
14
|
+
/** Other correct names Taxonomy gives a ColorScope concept that ColorScope does not carry. */
|
|
15
|
+
export declare const PALETTE_ALT_LABELS: ReadonlyMap<string, readonly string[]>;
|
|
14
16
|
export declare const PALETTE_FAMILY_TERMS: readonly Term[];
|
|
15
17
|
export declare const PALETTE_TEMPERATURE_TERMS: readonly Term[];
|
|
16
18
|
export declare const PALETTE_TONE_TERMS: readonly Term[];
|
package/dist/index.d.ts
CHANGED
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export { COLORSCOPE_SNAPSHOT } from "./axes/palette.generated.js";
|
|
8
8
|
export { type AxisNode, type ConceptId, COLOR_SCOPE_REFERENCE_KINDS, COLORSCOPE_BASE_URI, type ColorScopeConceptIdentity, type ColorScopeReferenceKind, type ColorScopeTarget, type ConceptNode, type ExternalReference, type FacetHolds, type FacetNode, type Governance, type GraphPredicate, type KnowledgeGraph, type KnowledgeGraphEdge, type KnowledgeGraphNode, KNOWLEDGE_GRAPH, type PhraseEntry, type MeaningContext, type MeaningPriority, PHRASE_ENTRIES, type Lifecycle, type PhraseMeaning, TAXONOMY_CORPUS_METADATA, TAXONOMY_CORPUS_REVISION, TAXONOMY_SNAPSHOT, TAXONOMY_VERSION, type TaxonomyTarget, } from "./v1.js";
|
|
9
|
+
export { spellingKey, spellingWords } from "./spelling-key.js";
|
|
9
10
|
export type { ElementPlacement, PeriodSpan, SearchedWithout, StyleKind, TermProvenance, TermUsage, UsageWithheld, } from "./term.js";
|
package/dist/index.js
CHANGED
|
@@ -13461,6 +13461,7 @@ var MATERIAL_POLYMERS_TERMS = [
|
|
|
13461
13461
|
"A polymer family formed by reacting a polyol with an isocyanate to form urethane linkages, covering rigid and flexible foams, elastomers, coatings and elastane fiber.",
|
|
13462
13462
|
STANDARD_ISO_1043_1,
|
|
13463
13463
|
{
|
|
13464
|
+
altLabels: ["PU"],
|
|
13464
13465
|
broaderId: "ldf3858",
|
|
13465
13466
|
external: [
|
|
13466
13467
|
externalMapping(EU_1007_20112, "polyurethane", "polyurethane", NARROW),
|
|
@@ -16514,9 +16515,17 @@ var COLOR_LAYER_KINDS = {
|
|
|
16514
16515
|
var PALETTE_LABEL_OVERRIDES = {
|
|
16515
16516
|
"composition/colorful": "Polychrome"
|
|
16516
16517
|
};
|
|
16518
|
+
var PALETTE_ALT_LABELS = /* @__PURE__ */ new Map([
|
|
16519
|
+
["composition/colorful", ["Polychromatic"]],
|
|
16520
|
+
["composition/monochrome", ["Monochromatic"]]
|
|
16521
|
+
]);
|
|
16517
16522
|
var termFor = (facet, entry) => {
|
|
16518
16523
|
const override = PALETTE_LABEL_OVERRIDES[`${facet}/${entry.slug}`];
|
|
16519
|
-
const altLabels =
|
|
16524
|
+
const altLabels = [
|
|
16525
|
+
...override === void 0 ? [] : [entry.label],
|
|
16526
|
+
...entry.altLabels,
|
|
16527
|
+
...PALETTE_ALT_LABELS.get(`${facet}/${entry.slug}`) ?? []
|
|
16528
|
+
];
|
|
16520
16529
|
const term12 = {
|
|
16521
16530
|
exactMatch: [entry.exactMatch],
|
|
16522
16531
|
id: entry.id,
|
|
@@ -28794,7 +28803,6 @@ var NO_PRIORITY_RULE_FITS = /* @__PURE__ */ new Set([
|
|
|
28794
28803
|
"hand-crafted",
|
|
28795
28804
|
"handcrafted",
|
|
28796
28805
|
"herringbone",
|
|
28797
|
-
"herringbone / chevron",
|
|
28798
28806
|
"herringbone or chevron",
|
|
28799
28807
|
"high",
|
|
28800
28808
|
"indigo",
|
|
@@ -28909,7 +28917,7 @@ var BRITISH_TO_AMERICAN = [
|
|
|
28909
28917
|
["woollen", "woolen"]
|
|
28910
28918
|
];
|
|
28911
28919
|
var DIACRITICS = /\p{M}/gu;
|
|
28912
|
-
var WORD_BREAKS = /[
|
|
28920
|
+
var WORD_BREAKS = /[^a-z0-9]+/u;
|
|
28913
28921
|
var ISE_ENDING = /is(?<ending>e|ed|es|ing|ation|er)$/u;
|
|
28914
28922
|
var ES_ENDING = /(?:ch|sh|x|ss)es$/u;
|
|
28915
28923
|
var NOT_A_PLURAL = /(?:ss|us|is)$/u;
|
|
@@ -28933,18 +28941,18 @@ var singular = (word) => {
|
|
|
28933
28941
|
}
|
|
28934
28942
|
return word.endsWith("s") && !NOT_A_PLURAL.test(word) ? word.slice(0, -1) : word;
|
|
28935
28943
|
};
|
|
28936
|
-
var
|
|
28937
|
-
const words = phrase.normalize("NFD").replaceAll(DIACRITICS, "").toLowerCase().split(WORD_BREAKS).filter((word) => word.length > 0).map(american);
|
|
28938
|
-
return [...words.slice(0, -1), singular(words.at(-1) ?? "")]
|
|
28944
|
+
var spellingWords = (phrase) => {
|
|
28945
|
+
const words = phrase.normalize("NFD").replaceAll(DIACRITICS, "").toLowerCase().replaceAll("$", " dollar ").split(WORD_BREAKS).filter((word) => word.length > 0).map(american);
|
|
28946
|
+
return [...words.slice(0, -1), singular(words.at(-1) ?? "")];
|
|
28939
28947
|
};
|
|
28948
|
+
var spellingKey = (phrase) => spellingWords(phrase).join("");
|
|
28940
28949
|
|
|
28941
28950
|
// src/v1.ts
|
|
28942
28951
|
var TAXONOMY_SNAPSHOT = "2026-10-02";
|
|
28943
|
-
var TAXONOMY_VERSION = "6.
|
|
28952
|
+
var TAXONOMY_VERSION = "6.2.0";
|
|
28944
28953
|
var PUBLISHED_V1_BASELINE = "2026-08-30";
|
|
28945
28954
|
var TAX45_REVIEW_SNAPSHOT = "2026-08-31";
|
|
28946
28955
|
var LIMESTONE_INTRODUCED = "2026-09-01";
|
|
28947
|
-
var RETAIL_PATTERN_SOURCE = "pattern vocabulary in a furnishings retailer (src-03)";
|
|
28948
28956
|
var compareText = (left, right) => {
|
|
28949
28957
|
if (left < right) {
|
|
28950
28958
|
return -1;
|
|
@@ -29795,18 +29803,6 @@ var AUTHORED_PHRASE_ENTRIES = [
|
|
|
29795
29803
|
},
|
|
29796
29804
|
"referenced"
|
|
29797
29805
|
),
|
|
29798
|
-
crossoverTaxonomyAmbiguity(
|
|
29799
|
-
"herringbone / chevron",
|
|
29800
|
-
["j0pdbj8", "ic8gy44"],
|
|
29801
|
-
"The furnishings retailer's compound phrase did not record which of the two distinct motif meanings was intended.",
|
|
29802
|
-
`${RETAIL_PATTERN_SOURCE}, reconciled by Linear TAX-45`,
|
|
29803
|
-
TAX45_REVIEW_SNAPSHOT,
|
|
29804
|
-
{
|
|
29805
|
-
introducedAt: TAX45_REVIEW_SNAPSHOT,
|
|
29806
|
-
reviewedAt: TAX45_REVIEW_SNAPSHOT
|
|
29807
|
-
},
|
|
29808
|
-
"referenced"
|
|
29809
|
-
),
|
|
29810
29806
|
crossoverTaxonomyAmbiguity(
|
|
29811
29807
|
"mosaic",
|
|
29812
29808
|
["8bgcr4c", "heg99pp"],
|
|
@@ -30963,5 +30959,7 @@ export {
|
|
|
30963
30959
|
TAXONOMY_CORPUS_METADATA,
|
|
30964
30960
|
TAXONOMY_CORPUS_REVISION,
|
|
30965
30961
|
TAXONOMY_SNAPSHOT,
|
|
30966
|
-
TAXONOMY_VERSION
|
|
30962
|
+
TAXONOMY_VERSION,
|
|
30963
|
+
spellingKey,
|
|
30964
|
+
spellingWords
|
|
30967
30965
|
};
|
package/dist/spelling-key.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* last word made singular
|
|
4
|
-
* "
|
|
2
|
+
* The words of a phrase as `spellingKey` reads them: accents dropped, British spelling made
|
|
3
|
+
* American, the last word made singular. Anything that is not a letter or digit is a word break.
|
|
4
|
+
* A price band's "$" is read as the word "dollar".
|
|
5
|
+
*/
|
|
6
|
+
export declare const spellingWords: (phrase: string) => string[];
|
|
7
|
+
/**
|
|
8
|
+
* One key for every spelling of a phrase: its `spellingWords` closed up, so "work surface",
|
|
9
|
+
* "work-surface" and "worksurface" share a key. A key is a single path segment, and a price band's
|
|
10
|
+
* "$$" and "$$$" keep distinct keys.
|
|
5
11
|
*/
|
|
6
12
|
export declare const spellingKey: (phrase: string) => string;
|
package/dist/term.d.ts
CHANGED
|
@@ -394,7 +394,7 @@ export type RelationRole =
|
|
|
394
394
|
export interface TermRelation {
|
|
395
395
|
predicate: RelationPredicate;
|
|
396
396
|
/**
|
|
397
|
-
* The permanent ID of the target concept.
|
|
397
|
+
* The permanent ID of the target concept.
|
|
398
398
|
*
|
|
399
399
|
* QUALIFICATION IS LOAD-BEARING, not a formatting preference. One `evokes` predicate works only
|
|
400
400
|
* because the target's axis types the reference: `evokes(place.region.nordic)` says "place"
|
package/dist/v1.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Axis, FacetHolds } from "./axes/index.js";
|
|
|
2
2
|
import type { ElementPlacement, ExternalMapping, ExternalScheme, PeriodSpan, RelationPredicate, SearchedWithout, StyleKind, TermProvenance, TermUsage, UsageWithheld } from "./term.js";
|
|
3
3
|
export type { FacetHolds } from "./axes/index.js";
|
|
4
4
|
export declare const TAXONOMY_SNAPSHOT: "2026-10-02";
|
|
5
|
-
export declare const TAXONOMY_VERSION: "6.
|
|
5
|
+
export declare const TAXONOMY_VERSION: "6.2.0";
|
|
6
6
|
export declare const COLORSCOPE_BASE_URI: "https://colorscope.materialinstruments.com";
|
|
7
7
|
export type ConceptId = string;
|
|
8
8
|
/** ColorScope's permanent URI for a concept it owns. */
|
|
@@ -158,5 +158,5 @@ export declare const TAXONOMY_CORPUS_METADATA: {
|
|
|
158
158
|
readonly phraseEntryCount: number;
|
|
159
159
|
readonly revision: string;
|
|
160
160
|
readonly snapshot: "2026-10-02";
|
|
161
|
-
readonly version: "6.
|
|
161
|
+
readonly version: "6.2.0";
|
|
162
162
|
};
|
package/package.json
CHANGED