Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Analysis Catalog: phrase rows

Aperta
#188 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia risolvendo o rivedendo il blocker #187, quindi esamina l’implementazione esistente di Analysis Catalog per le righe di token e i relativi percorsi di ricerca, ordinamento, filtraggio e mutazione. Aggiungi le schede Tokens/Phrases e le righe delle frasi con il comportamento indicato per surface, gloss, count e usage location. Il lavoro è completato quando le analisi delle frasi sono ricercabili, modificabili, unibili ed eliminabili, e l’eliminazione dissolve il raggruppamento delle frasi senza modificare il testo dei token o la segmentazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Add phrase analyses to the Analysis Catalog (#186) as their own list.

Blocked by #187 (dedupe phrase payloads on write). Until phrase payloads are deduped, a phrase row would be a read-time grouping over N identical records rather than a real row: counts would have to be computed by grouping on content, editing would be an N-way fan-out write, and delete would mean "remove N payloads and N links". Doing that first and unpicking it later is strictly worse than waiting — after #187 a phrase row is a record with links, exactly like a token row, and everything the catalog already does applies unchanged.

Scope once unblocked

  • A second list (the panel gains tabs at this point: Tokens / Phrases, each trigger showing its count).
  • One row per distinct PhraseAnalysis: surface form, gloss, usage count, usage locations from phraseAnalysisLinks[].tokens[].tokenRef.
  • Search over surface form + gloss using the same search fold as token rows.
  • Sort and filters reuse the token implementations; the facet-derivation rule (hide any facet with fewer than two distinct values) applies unchanged.
  • Edit, merge, and delete are analysis-keyed and global, matching the token mutations.

Delete semantics

Deleting a phrase analysis dissolves the grouping — the member tokens stop being a phrase and revert to individual tokens. This is consistent with the principle that delete removes recorded analysis and never changes the text or its segmentation: the token sequence is untouched, only the phrase-level analysis goes. Worth confirming this reads correctly to users, since the visible effect is an arc disappearing.

Why phrases are unreachable until this ships

A phrase gloss lives in no token analysis, so nothing in a token-only catalog surfaces it. This is the real cost of the token-only v1 and the reason this issue exists rather than being folded into #186.

Blocked by: #187. Follow-up to #186.

Lingua principale
TypeScript
Stelle
2
Fork
0
Merge medio
1g 9h
PR unite (30g)
78

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sillsdev/interlinearizer-extension

Tutte le issue di sillsdev/interlinearizer-extension

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.