Add missing German and English verb synonyms to the parser

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

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

評価

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

調査の方向性

packages/engine/src/messages/de.ts と en.ts で vocab.verbs と vocab.directions を確認し、次に packages/engine/test/parser.test.ts の parser のケースを調べてください。指定されたドイツ語と英語の同義語を追加し、各項目に parsing テストを1つずつ追加して、既存の parser テストと npm run check:packs が成功することを確認してください。

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

説明

area: engine good first issue priority: low type: feature

Context

The parser vocabulary lives in two tables: packages/engine/src/messages/de.ts and en.ts (vocab.verbs and vocab.directions). v0.1 added steig and steige for go after the noir playtests, but some common phrasings are still rejected as unknown verbs: German steigen and verlass, verlasse; English tell (the table has ask for talk) and exit.

Scope

  • Add:
    • German: steigen (go, like steig in "steig hinauf"); verlass, verlasse (the out direction).
    • English: tell (talk); exit (the out direction, like leave).
  • Before adding any further candidate, check with a test that it is really rejected today (for example "unterhalte dich mit" and "chat with" already work).
  • One parser test per new entry, in the style of packages/engine/test/parser.test.ts.
  • No pack format change; pack verbs still win over core phrases.

Acceptance criteria

  • Every added synonym has a test that parses it to the expected canonical command.
  • Existing parser tests pass unchanged, including "lets pack verbs override core phrases, even the internal unlock shortcut".
  • npm run check:packs passes.

References

  • packages/engine/src/messages/de.ts
  • packages/engine/src/messages/en.ts
  • packages/engine/test/parser.test.ts
  • CONTRIBUTING.md (Development setup)
主要言語
TypeScript
スター
0
フォーク
0
平均マージ
1時間 24分
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

nullthrone/lexvm のほかの issue

nullthrone/lexvm の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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