Add a test that the Spanish copy uses tú, not vos

Abierto Apto para principiantes
#38 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
87/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
json, typescript

Línea de trabajo

Empieza con packages/copy/test/copy.test.ts y packages/copy/locales/es-419.json; añade pruebas del matcher para los ejemplos de voseo indicados, incluidos los límites de letras acentuadas, y luego revisa cada valor de locale. Ejecuta pnpm --filter @hermit/copy test; el trabajo estará terminado cuando las pruebas del matcher detecten formas eliminadas o límites defectuosos y la comprobación de locales pase sin cambios en los locales.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

agent-friendly copy good first issue

Why

AGENTS.md rule 9 says the app's Spanish uses tú, and nothing checks it, while many people and coding agents write voseo without noticing. VISION.md's "voseo included" is about what people type to Hermit, which the eval sets cover; the app's own words use tú.

What to do

Today packages/copy/locales/es-419.json has no voseo. The test keeps it that way.

  1. Test first, in packages/copy/test/copy.test.ts: write a small matcher for voseo forms and test it on made-up strings. "Tocá el botón" and "Si querés, te aviso" are flagged. "Toca el botón", "Si quieres, te aviso" and "No abrí nada" are not.
  2. List only forms that can't be read another way, for example: podés, tenés, querés, sabés, hacés, decís, necesitás, preferís, tocá, mirá, probá, activá, revisá, volvé, poné, usá, agregá, cambiá, guardá, confirmá, dejá, buscá, esperá, fijate, acordate, decime, avisame, mandale, contame. Leave out words like "elegí" or "escribí", which are also the first person past tense.
  3. JavaScript's \b doesn't count accented letters as letters. Use (?<!\p{L}) before and (?!\p{L}) after, with the u and i flags.
  4. Add a test that no value in es-419.json matches. It passes today; the matcher's own tests show it can fail.

Done when

  • pnpm --filter @hermit/copy test passes with the new tests.
  • The matcher's tests fail if a form is removed from the list or the boundaries are broken.
  • No locale file changes.

How to check

pnpm --filter @hermit/copy test

Keep in mind

  • Test only. Change es-419.json only if the test finds real voseo there; it finds none today.
  • Leave the eval sets alone: their voseo is on purpose.
  • No em or en dashes in test names or messages either.
Lenguaje dominante
TypeScript
Estrellas
11
Forks
0
Merge medio
10 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DojoCodingLabs/hermit

Todos los issues de DojoCodingLabs/hermit

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.