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

オープン 初心者向け
#38 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
87/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
json, typescript

調査の方向性

packages/copy/test/copy.test.ts と packages/copy/locales/es-419.json から始め、アクセント付き文字の境界を含む、列挙された voseo の例について matcher のテストを追加し、その後すべての locale 値を確認します。pnpm --filter @hermit/copy test を実行します。matcher のテストで削除された形や壊れた境界を検出でき、locale の変更なしに locale のチェックが通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
11
フォーク
0
平均マージ
10分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DojoCodingLabs/hermit のほかの issue

DojoCodingLabs/hermit の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。