sillsdev / sillsdev/interlinearizer-extension

Staleness detection for segment-level analyses

Open
#139 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2
Forks
0
Avg merge
1d 17h
Merged PRs (30d)
55

Description

TokenAnalysisLink, PhraseAnalysisLink, and AlignmentEndpoint all carry surfaceText snapshots for drift detection, but SegmentAnalysisLink has only segmentId — a changed verse silently keeps its free translation looking fresh. Options:

  • Add a baselineTextHash (or full baselineText snapshot) to SegmentAnalysisLink, compared on load; flip status to 'stale' on mismatch, or
  • Record the owning Book.textVersion on the link and compare at book level (coarser, but nearly free).

Prefer the per-segment hash: book-level textVersion marks every segment stale on any edit anywhere in the book.

Size: S

Priority: P3 (do before free-translation features expand)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate SegmentAnalysisLink and compare its loading logic with the existing TokenAnalysisLink, PhraseAnalysisLink, and AlignmentEndpoint drift checks. Implement the preferred per-segment baseline comparison so changed text becomes stale while unchanged text remains fresh, then add or update tests covering both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.