# Usage: npx ezs extract-pascal-label.ini < data/corpus-simple-pascal.json > data/corpus-simple-label-pascal.json
# To see the enriched notices:
# $ fx < data/corpus-simple-label-pascal.json '.filter(o => o.ws.rnsr[0]?.length)'
[use]
# JSONParse
plugin = basics
[JSONParse]
# Action!
[assign]
path = ws.pascal
value = fix(_.get(self, "ws.pascal.1.code.value", "").replace("BGI / Prodig", "Géographie"), _.get(self, "ws.pascal.2.code.value")).join(" - ")
[dump]
indent = true