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

Đang mở Phù hợp với người mới
#38 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
87/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
json, typescript

Hướng nghiên cứu

Bắt đầu với packages/copy/test/copy.test.ts và packages/copy/locales/es-419.json; thêm các bài kiểm tra matcher cho những ví dụ voseo được liệt kê, bao gồm cả ranh giới của chữ cái có dấu, rồi kiểm tra mọi giá trị locale. Chạy pnpm --filter @hermit/copy test; công việc hoàn tất khi các bài kiểm tra matcher phát hiện được các dạng bị xóa hoặc ranh giới bị lỗi và bước kiểm tra locale đạt mà không thay đổi locale.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
11
Fork
0
Merge trung bình
10 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DojoCodingLabs/hermit

Tất cả issue của DojoCodingLabs/hermit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.