docs(04): commit plan-revision residue + 04-01 SUMMARY
This commit is contained in:
@@ -244,6 +244,7 @@ Lebuh → Lbh
|
||||
Simpang → Spg
|
||||
Kampung → Kg
|
||||
Kampong → Kg
|
||||
Kpg → Kampung
|
||||
Taman → Tmn
|
||||
Bangunan → Bgn
|
||||
Bukit → Bkt
|
||||
@@ -537,7 +538,7 @@ NO `exports`/`main` field — consumers import sub-paths directly (the `@arahara
|
||||
*/
|
||||
```
|
||||
|
||||
**`search/src/rules/abbreviations.ts`** — the vendored table as DATA, exactly per the `<abbreviation_table_contract>` block: a `ReadonlyArray<readonly [string, string]>` named `ABBREVIATION_ROWS` with all 47 rows listed there plus the explicit `Presint → Prsn` row, and an exported `buildAbbreviationMap(): Map<string, string[]>` that inverts the table once (abbreviation → full forms; full form → itself) — the canonical form is ALWAYS the long form. The header comment MUST cite the source:
|
||||
**`search/src/rules/abbreviations.ts`** — the vendored table as DATA, exactly per the `<abbreviation_table_contract>` block: a `ReadonlyArray<readonly [string, string]>` named `ABBREVIATION_ROWS` with every row listed there (48 minimum rows, including `Kpg → Kampung` — required by the `"Kpg Ampang" → "kampung ampang"` normalizer vector) plus the explicit `Presint → Prsn` row, and an exported `buildAbbreviationMap(): Map<string, string[]>` that inverts the table once (abbreviation → full forms; full form → itself) — the canonical form is ALWAYS the long form. The header comment MUST cite the source:
|
||||
|
||||
```typescript
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user