For each known agency canonical form or acronym mentioned in entities, emit the corresponding alternate form. Used to expand the keyword stream so both prose-form and short-form searches resolve the same article.
The output preserves input order and never duplicates an entity that's already in the input set.
Parameters
entities: readonlystring[]
Returns string[]
Example
expandAgencyAcronyms(['Fรถrsรคkringskassan', 'reform']) // โ ['FK'] (input already has the full form; emit acronym only)
For each known agency canonical form or acronym mentioned in
entities, emit the corresponding alternate form. Used to expand the keyword stream so both prose-form and short-form searches resolve the same article.The output preserves input order and never duplicates an entity that's already in the input set.