Add the PT9 interlinear converter - #240
Draft
jasonleenaylor wants to merge 1 commit into
Draft
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
jasonleenaylor
force-pushed
the
pt9-import-sync
branch
from
August 19, 2026 23:28
cca2b26 to
910f25b
Compare
jasonleenaylor
force-pushed
the
pt9-import
branch
3 times, most recently
from
August 20, 2026 18:10
e86f828 to
ef87486
Compare
Convert the parsed PT9 file set into the extension's analysis layer as the second slice of the import pipeline: anchor clusters onto the tokenized text, merge word and parse facets per token and contributions across gloss languages, and report what converted alongside what was dropped and why. Co-Authored-By: Claude Opus 5 <[email protected]>
jasonleenaylor
force-pushed
the
pt9-import-sync
branch
from
August 20, 2026 20:17
910f25b to
35a4664
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Convert the parsed PT9 file set into the extension's analysis layer, the second
slice of the PT9 import pipeline. convertPt9Project is a pure function of the
parsed files, the source project's text, and a timestamp — nothing here calls
papi.
spellings in order, because PT9's stored offsets point into a different
string than our text.
and phrase records, marking approved only what PT9 approved.
into one, keeping genuine disagreements as separate competing records.
key glosses by.
extension; the stub it ships with links nothing yet.
spelling rather than any one occurrence, so they carry no links.
index.ts is the converter's public surface: convertPt9Project, its input and
output types, the resolver seam, and the report types. The types each stage
hands the next stay internal to the conversion.
Dropped clusters are counted by reason rather than lost silently, so the report
shows whether a more precise anchoring strategy is worth building. Record ids
derive from the token reference and spelling, so re-importing the same data
produces the same ids. Persistence and the import command follow in the next
slice.
🤖 Generated with Claude Code
This change is