Skip to content

fix(core): align withBaseAvailability formula with makeScore#131

Open
Emran-goat wants to merge 2 commits into
devlint:mainfrom
Emran-goat:fix/align-confidence-formula-parser
Open

fix(core): align withBaseAvailability formula with makeScore#131
Emran-goat wants to merge 2 commits into
devlint:mainfrom
Emran-goat:fix/align-confidence-formula-parser

Conversation

@Emran-goat

@Emran-goat Emran-goat commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

parser.ts:withbaseavailability was computing the confidence score without two terms from the v2.4 formula (algorithmstability and postmergerisk). both are always 0 right now so nothing breaks numerically. but if someone ever sets these dimensions the formula would silently give a wrong score. this keeps both implementations in sync before it becomes a problem.

…mment

classifier.ts:164 had a French error message in an otherwise English codebase.
Changed to English for consistency.

pt-BR.ts:1824 had a TODO:translate comment that was already done. Removed it.
parser.ts:withBaseAvailability recomputes the confidence score when zdiff3
is detected but was missing the algorithmStability and postMergeRisk terms
from the documented v2.4 formula.
@t1gu1

t1gu1 commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

@devlint Looking good to me.

I less know about that part: (So i let you the final review)
image


For another PR

@devlint
One small detail and no worries if it's not in this PR, but should we maybe translate the thrown error messages, as they're visible to the user? (I mean all of them)

@Emran-goat i guess if you want to contribute to another PR and try to do the translation with an LLM/Claude or other, it could be a nice and easy win. :)

@Emran-goat

Copy link
Copy Markdown
Contributor Author

and just opened #134 for the one leftover French console.error i found in the resolver. everything else was already clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants