Spaces:
Runtime error
Runtime error
| """Emit frontend highConfidence[] from backend lexicon.""" | |
| from __future__ import annotations | |
| from backend.core.notes_high_confidence_lexicon import HIGH_CONFIDENCE_LEXICON | |
| print(" const highConfidence = [") | |
| for sid, pat in HIGH_CONFIDENCE_LEXICON: | |
| print(f" {{ code:'{sid}', rx:/{pat}/i }},") | |
| print(" ];") | |