Skip to content

Commit b9d36ea

Browse files
committed
Teach artifact audit Spanish labels
1 parent d3b6437 commit b9d36ea

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

scripts/audit-artifact.py

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ def has_generic_next_action(html: str, text: str) -> bool:
6262
"id": "intent",
6363
"points": 15,
6464
"label": "Clear user intent",
65-
"patterns": [r"\bwhat you need\b", r"\bprimary intent\b", r"\bintent\b"],
65+
"patterns": [r"\bwhat you need\b", r"\bprimary intent\b", r"\bintent\b", r"\bqu[eé] necesitas\b", r"\bintenci[oó]n\b"],
6666
},
6767
{
6868
"id": "secondary",
6969
"points": 8,
7070
"label": "Useful secondary needs",
71-
"patterns": [r"\balso handled\b", r"\bsecondary\b", r"\balso needs\b", r"\bcovered\b"],
71+
"patterns": [r"\balso handled\b", r"\bsecondary\b", r"\balso needs\b", r"\bcovered\b", r"\btambi[eé]n cubre\b", r"\bnecesidades secundarias\b", r"\bcubierto\b"],
7272
},
7373
{
7474
"id": "evidence",
7575
"points": 12,
7676
"label": "Evidence visible",
77-
"patterns": [r"\bwhat i checked\b", r"\bevidence\b", r"\binspected\b", r"\bsources?\b"],
77+
"patterns": [r"\bwhat i checked\b", r"\bevidence\b", r"\binspected\b", r"\bsources?\b", r"\blo que revis[eé]\b", r"\bevidencia\b", r"\binspeccionad[oa]\b", r"\bfuentes?\b"],
7878
},
7979
{
8080
"id": "separation",
@@ -86,25 +86,30 @@ def has_generic_next_action(html: str, text: str) -> bool:
8686
r"\bwhat i am assuming\b",
8787
r"\bwhat is still unclear\b",
8888
r"\bfacts?\b.*\binferences?\b",
89+
r"\blo que sabemos\b",
90+
r"\blo que esto sugiere\b",
91+
r"\blo que asumo\b",
92+
r"\blo que sigue incierto\b",
93+
r"\bhechos?\b.*\binferencias?\b",
8994
],
9095
},
9196
{
9297
"id": "html_advantage",
9398
"points": 12,
9499
"label": "HTML advantage is real",
95-
"patterns": [r"\bwhy this helps\b", r"\bhtml advantage\b", r"\bbrowser view\b", r"\bwork this saves\b"],
100+
"patterns": [r"\bwhy this helps\b", r"\bhtml advantage\b", r"\bbrowser view\b", r"\bwork this saves\b", r"\bpor qu[eé] ayuda\b", r"\bventaja html\b", r"\bvista en navegador\b", r"\btrabajo que ahorra\b"],
96101
},
97102
{
98103
"id": "budget",
99104
"points": 6,
100105
"label": "Smallest useful size",
101-
"patterns": [r"\bsize\b", r"\bbudget\b", r"\bcompact\b", r"\bstandard\b", r"\binteractive\b"],
106+
"patterns": [r"\bsize\b", r"\bbudget\b", r"\bcompact\b", r"\bstandard\b", r"\binteractive\b", r"\btama[nñ]o\b", r"\bpresupuesto\b", r"\bcompacto\b", r"\best[aá]ndar\b", r"\binteractivo\b"],
102107
},
103108
{
104109
"id": "first_screen_decision",
105110
"points": 12,
106111
"label": "Decision, risk, and next action",
107-
"patterns": [r"\bbest next move\b", r"\brecommendation\b", r"\bnext action\b", r"\bdecision\b"],
112+
"patterns": [r"\bbest next move\b", r"\brecommendation\b", r"\bnext action\b", r"\bdecision\b", r"\bmejor siguiente paso\b", r"\brecomendaci[oó]n\b", r"\bsiguiente acci[oó]n\b", r"\bdecisi[oó]n\b"],
108113
},
109114
{
110115
"id": "visual_model",
@@ -117,32 +122,32 @@ def has_generic_next_action(html: str, text: str) -> bool:
117122
"id": "interaction_export",
118123
"points": 7,
119124
"label": "Interaction/export useful when present",
120-
"patterns": [r"\bcopy\b", r"\bexport\b", r"<textarea\b", r"<button\b", r"\bdownload\b"],
125+
"patterns": [r"\bcopy\b", r"\bexport\b", r"<textarea\b", r"<button\b", r"\bdownload\b", r"\bcopiar\b", r"\bexportar\b", r"\bdescargar\b"],
121126
"html": True,
122127
},
123128
{
124129
"id": "next_prompt",
125130
"points": 5,
126131
"label": "Copy-ready continuation",
127-
"patterns": [r"\bcontinue from here\b", r"\bnext prompt\b", r"\bcopy prompt\b", r"\bready-to-run\b"],
132+
"patterns": [r"\bcontinue from here\b", r"\bnext prompt\b", r"\bcopy prompt\b", r"\bready-to-run\b", r"\bcontin[uú]a desde aqu[ií]\b", r"\bprompt para continuar\b", r"\bcomando listo\b"],
128133
},
129134
{
130135
"id": "memory_decision",
131136
"points": 3,
132137
"label": "Memory decision",
133-
"patterns": [r"\bsave this\?\b", r"\bsave decision\b", r"\bmemory label\b", r"\barchive recommendation\b"],
138+
"patterns": [r"\bsave this\?\b", r"\bsave decision\b", r"\bmemory label\b", r"\barchive recommendation\b", r"\bguardar esto\?\b", r"\brecomendaci[oó]n de archivo\b", r"\betiqueta de memoria\b", r"\bvalidez sugerida\b"],
134139
},
135140
{
136141
"id": "memory_access",
137142
"points": 2,
138143
"label": "Quiet memory access",
139-
"patterns": [r"\bsaved for later\b", r"\bfind it fast\b", r"\bnot saved\b"],
144+
"patterns": [r"\bsaved for later\b", r"\bfind it fast\b", r"\bnot saved\b", r"\bguardado para despu[eé]s\b", r"\bencu[eé]ntralo r[aá]pido\b", r"\bno guardado\b"],
140145
},
141146
{
142147
"id": "user_agency",
143148
"points": 2,
144149
"label": "User agency visible",
145-
"patterns": [r"\bcompare\b", r"\brevise\b", r"\bthink this through\b", r"\bsave for later\b", r"\bstop\b"],
150+
"patterns": [r"\bcompare\b", r"\brevise\b", r"\bthink this through\b", r"\bsave for later\b", r"\bstop\b", r"\bcomparar\b", r"\brevisar\b", r"\bpensar\b", r"\bguardar\b", r"\bdetener\b"],
146151
},
147152
]
148153

0 commit comments

Comments
 (0)