Conversation
The reconciliation logic only handled u:/ü normalization, missing the much larger class of duplicates caused by different pinyin formatting between sources (CC-CEDICT char-level "dong4 tai4 zhu4 ci2" vs Wiktextract word-level "dongtai4 zhuci2"). This caused 動態助詞 and ~29K other entries to appear as duplicates with separate definitions. Changes: - Add _pinyin_merge_key() that strips spaces, hyphens, tone numbers, and parenthesized annotations to produce a canonical merge key - Rewrite reconcile_headwords() to use merge-key grouping instead of pairwise SQL comparison (handles >2 variants per headword) - Also merge dialect_forms when consolidating headwords - Add find_bad_translations() to detect MiniMax quality issues (Latin characters in non-Latin script languages like Arabic) - Add 10 new tests covering spacing variants, hyphens, tone merging, case preservation, and the _pinyin_merge_key function Closes #6 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tofutim
added a commit
that referenced
this pull request
Aug 11, 2026
…ht framing ARR October 2026 revision, Tier 2 items #5 (English-pivot ablation) and #6 (per-language error taxonomy), plus framing tweaks and Future Work paragraph on native-speaker evaluation. Content additions: §5.4 (new) * Pivot ablation paragraph reporting Llama-3.3-70B (open-weight, Groq) with vs. without English pivot on 50 headwords each in vi + th. Vietnamese: pivot CometKiwi 0.568 vs. direct 0.502 (Δ +0.067); Thai: pivot 0.520 vs. direct 0.526 (Δ +0.006). Finding: pivot bias is language-dependent, not uniform quality loss. Directly addresses AC pivot criticism + gKVr Anglocentric bias. §5.5 (new) * Per-language error-taxonomy pointer to Appendix~C's full 18-lang table (mono-gloss rate, mean segments, median length, CJK-inclusion, zh-echo). Addresses AC error analysis + gKVr per-lang breakdown + cky5 hallucination ask. Appendix~C: tab:error-taxonomy — full 18-lang breakdown. Framing (Task #7 in revision plan): * Abstract, §1 intro, §6 Limitations, §7 Conclusion: replaced "single commercial LLM" and "single LLM" wordings with "single open-weight LLM (MiniMax M2.5)", noting Fireworks/NIM third-party hosting supports reproducibility. Reframes gKVr's "single proprietary model" as partly a paper-clarity issue. §7 Future Work: * Native-speaker eval paragraph: explicitly acknowledged as gold-standard validation that requires per-language recruitment funding beyond the pipeline's $150 API cost; the model-based semantic metrics in §5.2-§5.3 are the strongest automated proxy. Preempts reviewer criticism for what we're deferring. Layout: * tab:comparison widened from 5 to 7 columns (BSc F1 + COMET-DA); compressed column widths and dropped % symbols in numeric cells to fit single-column tabular. Renders cleanly (overfull hbox ~4pt, cosmetic). * Conclusion compressed to a single tighter paragraph so body stays within 8 ACL pages. * §1 removed historical "Dictionario Hispanico Sinicum" decoration sentence + Under-resourced-languages example enumeration in §7 to reclaim space. Final: 11 pages total, 8 body pages (ACL-compliant), 3 pages references + appendices. lualatex + bibtex + 2× lualatex clean. #8 (open-weight second-model verification via Gemma-4-31B on Cerebras free tier) is running in a background job; the corresponding §5.6 and tab:verify addition will land in a follow-up commit with the release bump. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
Summary
Investigates and fixes the bad definition for 動態助詞 reported in #6.
Root cause: The dictionary had two separate entries for 動態助詞 — one from CC-CEDICT (
dong4 tai4 zhu4 ci2, character-level pinyin) and one from Wiktextract (dongtai4 zhuci2, word-level pinyin). Thereconcile_headwordsfunction only handledu:/ünormalization, not spacing or tone-number formatting differences.Findings:
جسيمAspect— Arabic+English concatenated)trạng từ(means "adverb", not "aspect particle"), truncated Thai, garbled FarsiChanges:
_pinyin_merge_key()normalizes spaces, hyphens, tone numbers, andu:/üto produce a canonical merge keyreconcile_headwords()uses merge-key grouping (handles >2 variants per headword, also merges dialect_forms)find_bad_translations()detects Latin-character contamination in non-Latin script languagesTest plan
reconcile_headwordson production dictmaster.db to verify duplicate reductionfind_bad_translationsto get full count of flagged entries for future cleanupCloses #6
🤖 Generated with Claude Code