Repository navigation
Give supplementary-plane capitals the camelCase bonus [patch] - #119
Merged
Merged
Conversation
The camelCase bonus read case from the lead surrogate alone, which is caseless, so a Deseret, Osage or Adlam capital never earned the bonus and a lowercase letter from those scripts never opened a boundary. Case is now read from the whole codepoint, through Rune where it exists and the invariant string casing on netstandard2.0, and ApplyBonuses takes whether the codepoint is uppercase instead of its char forms. Fixes #110 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016S7rZyqVHjk6PMohZvdB4y
|
matt-edmondson
added a commit
that referenced
this pull request
Nov 4, 2026
…mp [patch] (#129) Polyfill 11.4.5 changed which shim members are emitted per target framework, so pack failed package validation on main with 151 errors (80 CP0016, 56 CP0001, 6 CP0014, 4 CP0015, 3 CP0002, 2 CP0008), all on polyfilled BCL types. That is why 1.4.1 is still the latest release and the #117, #118 and #119 fixes never shipped. Regenerated with -p:ApiCompatGenerateSuppressionFile=true, which leaves 11 entries (10 CP0014, 1 CP0015) instead of 153. All of them are on Polyfill shim types and none on FuzzySearch's own API. Fixes #128 Claude-Session: https://claude.ai/code/session_017vfJW6Hi85XX4Q7wr44mWe Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Nov 11, 2026
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.



Fixes #110
Summary
Scoring read a codepoint's case from its leading code unit. For a surrogate pair that unit is caseless, so supplementary-plane capitals (Deseret, Osage, Adlam, …) never earned
camelCaseMatchBonus, and a supplementary lowercase letter never setprevLower. Matching was already case-insensitive after #90; only the bonus was missing.Fuzzy.GetLetterCasereads is-upper and is-lower from the whole codepoint:Runeon .NET Core 3.0+, and the invariant string casing on netstandard2.0/2.1, the same fallbackSurrogatePairsEqualIgnoringCaseuses.ApplyBonusesnow takesbool isUpperinstead of the char, lower and upper forms. Its five unit tests are updated to match.Testing
Contains_WithScore_SupplementaryPlaneCamelCaseBoundary_ScoresLikeTheBasicPlaneBoundarycoversab𐐀/𐐨,ab𐐀/𐐀,ab𐒰/𐒰,𐐩𐐩𐐀/𐐀, and a Deseret lowercase letter followed by a basic-plane capital. All five rows failed before the change and pass after it.Contains_WithScore_InsideASupplementaryPlaneCapitalRun_EarnsNoCamelCaseBonuschecks that no bonus is given inside an all-caps run.dotnet buildpasses for every target (netstandard2.0, netstandard2.1, net8.0, net9.0, net10.0).dotnet test: 112/112.🤖 Generated with Claude Code
https://claude.ai/code/session_016S7rZyqVHjk6PMohZvdB4y
Generated by Claude Code