Skip to content

Set correct language on non-English example instruments - #146

Merged
woodthom2 merged 1 commit into
harmonydata:mainfrom
roshaneyshah:fix/example-languages
Oct 23, 2026
Merged

woodthom2 merged 1 commit into
harmonydata:mainfrom
roshaneyshah:fix/example-languages

Conversation

@roshaneyshah

Copy link
Copy Markdown
Contributor

Description

All example instruments were tagged "en", including the Portuguese, French, German and Spanish GAD-7. Since #143, negation follows the instrument language, so these examples were still negated with English rules. This sets the correct language code on the 11 non-English examples.

Only examples.py is changed. No new dependencies.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Testing

Checked that each example's text matches its new language code, that all codes are valid in the Language enum, and that the examples still load.

CI on my fork: 121 passed; 1 failed (test_convert_pdf, "Unable to start Tika server"), which is unrelated to this change.

Checklist

  • My PR is for one issue, rather than for multiple unrelated fixes.
  • I have performed a self-review of my own code
  • I add third party dependencies only when necessary.

discordapp.com/users/1065327340994969671

All example instruments were tagged "en". Since negation now follows the instrument language (harmonydata#143), this meant the Portuguese, French, German and Spanish GAD-7 examples were still negated with English rules.
@woodthom2
woodthom2 merged commit c00f1bf into harmonydata:main Oct 23, 2026
1 of 2 checks passed
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