Skip to content

Fix reversed zh-cn/vi answer choices and zh-hant translation errors - #166

Open
YongRui0402 wants to merge 1 commit into
rubynor:masterfrom
YongRui0402:fix-chinese-questions
Open

YongRui0402 wants to merge 1 commit into
rubynor:masterfrom
YongRui0402:fix-chinese-questions

Conversation

@YongRui0402

Copy link
Copy Markdown

Fixes #164, fixes #165. This PR is ready to merge and publish as is, so no follow-up work is needed.

What

All changes are in old-packages/questions, the package that is published as @bigfive-org/questions and used by bigfive-test.com.

Language Change
zh-cn Syncs the published 1.6.4 translation into git, which previously had only the older 1.3.3 set. Fixes reversed minus-keyed choices (#164) and the typo 不太不准确 → 不太准确. Trims stray whitespace in 4 items.
vi Adds the published 1.6.4 translation, which was missing from git. Fixes reversed minus-keyed choices (#164). Trims stray whitespace in 1 item.
zh-hant Adds the published 1.6.4 "Chinese (Traditional)" set with the 21 item fixes and the choice labels from #165.
test/test.js New test: in every language, minus choices must mirror plus (same labels, score 6 - plus). This would have caught #164.
data/languages.json Registers zh-hant and vi.

Verification

  • standard and ava pass (11 tests).
  • Negative control: putting the published 1.6.4 zh-cn/choices.js back makes the new test fail (zh-cn: minus[0] label matches plus[0]).
  • Via getItems(), choosing "very accurate" on item 9 ("Use others for my own ends", minus) now scores 1 in en, zh-cn, vi and zh-hant. Before the fix, zh-cn and vi scored 5.
  • Compared with the published 1.6.4 data, the only differences are:

Notes for release

  • zh-hk is left in place. 1.6.4 replaced it with zh-hant, so you may want to remove it when publishing.
  • web/package.json still pins @bigfive-org/questions@1.3.3, while the live site serves 1.6.4 data. Publishing a new version and bumping web/ would bring git and production back in sync.
  • Results already stored for zh-cn / vi since 1.6.4 have minus-keyed items scored backwards. They can be corrected by flipping those scores (6 - score).

🤖 Generated with Claude Code

- zh-cn, vi: minus-keyed answer choices were listed in reverse, so
  "very accurate" on a minus item scored 5 instead of 1 (55 of 120 items).
  Sync the published 1.6.4 data into git and mirror minus from plus.
  Also fixes the zh-cn typo 不太不准确 and stray whitespace in 5 items.
- zh-hant: add the published 1.6.4 set with 21 item fixes (double-negation
  typos, simplified characters, mistranslations) and natural choice labels.
- test: assert minus choices mirror plus choices in every language.

Fixes rubynor#164
Fixes rubynor#165

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Am6vEMNWSejDH6Xmdo4ded

This branch has not been deployed

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

Labels

None yet

Projects

None yet

1 participant