Clean up tags
FreeLogic@rabbinatix/clean-up-tags by Rabbinatixupdated Oct 4, 2026
Trims and lower-cases tags, drops repeats and sorts them.
[" News", "news", "Tech"] becomes ["news", "tech"]. A helper function cleans each tag with Map; Unique keeps the first of each.
Shows: Map, Unique, Sort.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Clean up tags. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Inputs
tags: List of texts
Outputs
tags: List of texts
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 5
Clean up tags
tags
Map, Collection. 1 input, 1 output. step 2 of 5
Map Normalize a tag
array
result
Unique, Collection. 1 input, 1 output. step 3 of 5
Unique
array
result
Sort, Collection. 1 input, 1 output. step 4 of 5
Sort
array
result
Return, Input / output. 2 inputs, 0 outputs. step 5 of 5
Return
tags
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
Examplesrun live against the logic · 2/2 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| Repeats | {"tags":[" News","news","Tech"]} | {"tags":["news","tech"]} | |
| None | {"tags":[]} | {"tags":[]} |
Try it
Versions
In this package
Clean up tags (entry)
Normalize a tag
