Link a gloss to an existing lexicon sense

オープン
#228 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

src/components/MorphemeBox.tsx と #227 の表示作業から始め、既存の analysis-edit の重複排除パスと port の検索機能を追跡します。現在の表層形から候補の語義の選択まで searchByForm を追跡し、senseRef と glossSenseRef、リンク解除および採用する gloss の判断を含めます。完了条件は、gloss フィールドと形態素エディターでリンクとリンク解除が機能し、サポートされていない provider または tier 0 に対してレンダリングされないことです。

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

説明

enhancement

Let a user attach a gloss to a specific lexicon sense, and detach it again.

Scope

A lookup affordance in the gloss field and the morpheme editor: searchByForm on the current surface form, pick a sense from the candidates, store the ref (senseRef on a morpheme, glossSenseRef on a token analysis). Uses the third grid row MorphemeBox reserves (src/components/MorphemeBox.tsx), whose display half lands in #227.

Gated on the port's search capability — not rendered when the active provider cannot search, and not rendered in tier 0.

The UX decision to record

Free-form glossing and lexicon linking are distinct and both first-class; a gloss never requires a link. The model already settles the data question — a typed gloss takes precedence over the ref, and the ref is retained so the link is not lost. What is not settled is what the user sees when the two disagree, and how they say "actually, use the lexicon's wording."

Recommended: linking never overwrites typed text, and an explicit adopt sense gloss action copies the resolved text into gloss. Decide and write it down here, because every later lexicon affordance inherits it.

Also in scope

  • Unlink, leaving the free-form gloss intact. Dropping a ref must never blank a gloss.
  • Linking and unlinking are analysis edits: they go through the existing dedupe path, and references stay outbound only — nothing here writes to the lexicon (#194).

Non-goals

Creating entries. Search that finds nothing is a dead end in this item; the create path is the next one.

主要言語
TypeScript
スター
2
フォーク
0
平均マージ
1日 4時間
マージ済み PR(30日)
99

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

sillsdev/interlinearizer-extension のほかの issue

sillsdev/interlinearizer-extension の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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