@instruments/taxonomy 6.1.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 +4 -0
- package/dist/axes/palette.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -5
- package/dist/spelling-key.d.ts +9 -5
- package/dist/v1.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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
|
+
|
|
5
9
|
## 6.1.0 release notes
|
|
6
10
|
|
|
7
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.
|
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,5 +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 } from "./spelling-key.js";
|
|
9
|
+
export { spellingKey, spellingWords } from "./spelling-key.js";
|
|
10
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,
|
|
@@ -28932,14 +28941,15 @@ var singular = (word) => {
|
|
|
28932
28941
|
}
|
|
28933
28942
|
return word.endsWith("s") && !NOT_A_PLURAL.test(word) ? word.slice(0, -1) : word;
|
|
28934
28943
|
};
|
|
28935
|
-
var
|
|
28944
|
+
var spellingWords = (phrase) => {
|
|
28936
28945
|
const words = phrase.normalize("NFD").replaceAll(DIACRITICS, "").toLowerCase().replaceAll("$", " dollar ").split(WORD_BREAKS).filter((word) => word.length > 0).map(american);
|
|
28937
|
-
return [...words.slice(0, -1), singular(words.at(-1) ?? "")]
|
|
28946
|
+
return [...words.slice(0, -1), singular(words.at(-1) ?? "")];
|
|
28938
28947
|
};
|
|
28948
|
+
var spellingKey = (phrase) => spellingWords(phrase).join("");
|
|
28939
28949
|
|
|
28940
28950
|
// src/v1.ts
|
|
28941
28951
|
var TAXONOMY_SNAPSHOT = "2026-10-02";
|
|
28942
|
-
var TAXONOMY_VERSION = "6.
|
|
28952
|
+
var TAXONOMY_VERSION = "6.2.0";
|
|
28943
28953
|
var PUBLISHED_V1_BASELINE = "2026-08-30";
|
|
28944
28954
|
var TAX45_REVIEW_SNAPSHOT = "2026-08-31";
|
|
28945
28955
|
var LIMESTONE_INTRODUCED = "2026-09-01";
|
|
@@ -30950,5 +30960,6 @@ export {
|
|
|
30950
30960
|
TAXONOMY_CORPUS_REVISION,
|
|
30951
30961
|
TAXONOMY_SNAPSHOT,
|
|
30952
30962
|
TAXONOMY_VERSION,
|
|
30953
|
-
spellingKey
|
|
30963
|
+
spellingKey,
|
|
30964
|
+
spellingWords
|
|
30954
30965
|
};
|
package/dist/spelling-key.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* last word made singular
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
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.
|
|
7
11
|
*/
|
|
8
12
|
export declare const spellingKey: (phrase: string) => string;
|
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