Repository navigation
LT-22699: New capability for Hermit Crab: per-affix maximum application count - #1263
Draft
johnml1135 wants to merge 1 commit into
Draft
johnml1135 wants to merge 1 commit into
johnml1135 wants to merge 1 commit into
Conversation
HCLoader now reads HC/AffixRules/AffixRule (guid, maxApps) from the project's ParserParameters and sets MaxApplicationCount on the affix rule built from that MSA. The guid is the representative MSA when MSAs are merged, otherwise the MSA itself. Absent, unparseable or non-positive values keep the default of one application. Values above ten are clamped to ten. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1263 +/- ##
==========================================
- Coverage 40.92% 40.92% -0.01%
==========================================
Files 1602 1602
Lines 360800 360811 +11
Branches 42245 42248 +3
==========================================
- Hits 147648 147647 -1
- Misses 183655 183667 +12
Partials 29497 29497
🚀 New features to boost your workflow:
|
This was referenced Nov 25, 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.
Start here:
HCLoaderreads a per-affix maximum application count from the project's ParserParameters, so FLEx's Hermit Crab parser can apply one affix more than once. Nothing in FLEx writes the key yet; Motif writes it today.Need. Hermit Crab supports
MaxApplicationCounton affix rules (default 1), and FieldWorks never sets it. Swahili needs repeated verb extensions (-ishana, -ezea, a causative twice) and Tamil needs converbs after an auxiliary.Storage key.
The guid names the MSA the rule is built from: the representative MSA when MSAs are merged (the default), the MSA itself when
HC/MergeMSAsis false. Absent, unparseable or non-positivemaxAppskeeps 1; values above 10 clamp to 10. Unknown guids are ignored.Scope. Only
HC/AffixRulesis new.CompoundRulesand itsmaxAppsare untouched.Review.
HCLoader.cs(a dictionary read in the constructor, one lookup inLoadMorphologicalRule) and eight newHCLoaderTestscases: absent key,maxApps=2, invalid values, above-range clamp, guid matching no MSA, merged MSAs, andMergeMSAs=falsewith two MSAs on one entry where only the keyed, non-representative MSA's rule gets the count.Testing. Not run locally: the Windows build of this worktree stopped on a missing
sil.windows.formspackage file (Interop.WIA.dll), unrelated to this change. Comment hygiene passed. CI is the first test run.Jira: LT-22699 (existing request, "Allow Hermit Crab parser to try affixes more than once"). Related: sillsdev/motif#436, sillsdev/PanGloss#476.
Next: reviewer confirms the cap of 10 and that keying on the representative MSA matches how users will set it.
🤖 Generated with Claude Code
This change is