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

+1 -1
View File
@@ -1,5 +1,5 @@
- Leave layer aliases the layer id already spells, such as "dams" for - Leave layer aliases the layer id already spells, such as "dams" for
`local-dams`, out of the voice layer hint. The Realtime prompt is 305 `local-dams`, out of the voice layer hint. The Realtime prompt is 305
characters shorter, leaving room under the 52,000 gate for new characters shorter, leaving room under the 52,000 gate for new
voice-toggleable layers; every alias is still accepted (quanticsoul4772, voice-toggleable layers; every alias is still accepted (@quanticsoul4772,
#1462). #1462).
+3 -5
View File
@@ -525,8 +525,6 @@ const SELF_EVIDENT_IDS = new Set([
'radio', 'radio',
'wind', 'wind',
'directions', '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". */ /** 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 * 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 * 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 * the tool JSON small; the runner accepts the full alias list. Of those two,
* already spells ("dams"→local-dams, "weather radar"→weather-radar) is left * an alias the id already spells ("dams"→local-dams, "weather radar"→
* out, and so is a layer with no other alias. * weather-radar) is left out, and a layer with neither left gets no hint.
* @returns {string} One line for the layerId description. * @returns {string} One line for the layerId description.
*/ */
export function voiceLayerAliasHint() { export function voiceLayerAliasHint() {