Say the alias hint filters only the first two aliases, and drop an id the filter now covers

This commit is contained in:
Sameh Khamis committed 2026-11-02 07:07:55 -08:00
1 parent 473ea3b90b
commit 9fecc9c4ee
2 files changed
+4 -6

No files matched your search

+3 -5
View File
@@ -525,8 +525,6 @@ const SELF_EVIDENT_IDS = new Set([
'radio',
'wind',
'directions',
// The brand is already the layer id; all spoken aliases remain accepted.
's2-ghostmaps',
]);
/** Lower case with spaces and hyphens removed: "Data centers" → "datacenters". */
@@ -535,9 +533,9 @@ const spelled = (text) => text.toLowerCase().replace(/[\s-]+/g, '');
/**
* Compact model-facing alias hint: "alias/alias→id; …" for toggleable layers
* whose id is not already the spoken word. At most two aliases per layer keep
* the tool JSON small; the runner accepts the full alias list. An alias the id
* already spells ("dams"→local-dams, "weather radar"→weather-radar) is left
* out, and so is a layer with no other alias.
* the tool JSON small; the runner accepts the full alias list. Of those two,
* an alias the id already spells ("dams"→local-dams, "weather radar"→
* weather-radar) is left out, and a layer with neither left gets no hint.
* @returns {string} One line for the layerId description.
*/
export function voiceLayerAliasHint() {