Skip to content

Remove stray hyphens and dashes from backend labels and messages - #1076

Open
Irozuku wants to merge 17 commits into
developfrom
fix/visible-text-hyphens
Open

Irozuku wants to merge 17 commits into
developfrom
fix/visible-text-hyphens

Conversation

@Irozuku

@Irozuku Irozuku commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Backend labels, descriptions and messages used em dashes and middle dots as punctuation, hyphenated numeric ranges, and hyphens that are not part of the standard spelling of the word (non-parametric, re-ranking, Spalten-Arithmetik, Sobre-muestreo, neg-entropia). Each hyphenated term was checked against its library docs and the spelling authority of its language, so terms spelled with a hyphen keep it (Cross-Validation, K-Fold, Shapiro-Wilk, t-test, TF-IDF, Grad-CAM, Feature-Engineering, Kopf- und Fußzeilen) while the rest are cleaned in all five languages. A test checks the cleaned spellings and lets hyphenated label words through only from an explicit list of standard terms and product names.


Type of Change

  • Backend change
  • Frontend change
  • CI / Workflow change
  • Build / Packaging change
  • Bug fix
  • Documentation

Changes (by file)

  • DashAI/back/converters/**: em dashes in descriptions become sentence punctuation; German compounds are closed (Spaltenarithmetik, Varianzschwellenwert, Perzentilauswahl), as are Sobremuestreo, Subamostrador and negentropia; the FastICA whiten options get readable labels (Arbitrary variance, Unit variance) instead of arbitrary-variance.
  • DashAI/back/models/RAG/**, DashAI/back/services/RAG/**, DashAI/back/workflows/RAG_workflow.py, DashAI/back/api/api_v1/endpoints/prompts.py: retriever representations use commas instead of middle dots; an unresolved representation value reads "not set" (and its translation) instead of an em dash; reranking, reranker, subqueries and pretrained lose their optional hyphen.
  • DashAI/back/models/hugging_face/**, DashAI/back/models/scikit_learn/** and the other models: numeric ranges read "0 to 1" instead of "0-1"; middle dots and em dashes become commas or sentences; Multilayer, nonparametric, pretraining and fully connected follow the dictionary.
  • DashAI/back/explainability/**, DashAI/back/exploration/**: em dashes removed from descriptions; German labels such as Clusterstabilität, Okklusionssalienz and Silhouettendiagramm are closed compounds.
  • DashAI/back/statistical_tests/**: post hoc and nonparametric in English, Spanish and Portuguese; the German Post-hoc-Test and Shapiro-Wilk-Test keep their hyphens.
  • DashAI/back/metrics/**, DashAI/back/reports/**, DashAI/back/dataloaders/**, DashAI/back/optimizers/**, DashAI/back/units/**, DashAI/back/core/schema_fields/enum_labels.py, DashAI/back/types/type_validation.py, DashAI/back/api/api_v1/endpoints/predict.py: the same cleanup in labels and user facing messages (Log Loss, Makrodurchschnitt, Hyperparameteroptimierung, nonempty, rerun).
  • tests/back/test_visible_text_dashes.py: checks every component's visible text for dash punctuation, hyphenated ranges, cleaned spellings and hyphenated words outside the standard term list, and that Cross-Validation, K-Fold, Leave-One-Out, Shapiro-Wilk Test and the other standard names keep their hyphen.
  • tests/back/RAG/**, tests/back/api/**, tests/back/exploration/**, tests/back/models/test_gguf_text_generation.py: expectations follow the new texts.

Testing (optional)

  • In the session wizard, open the evaluation step and see Cross-Validation, K-Fold and Leave-One-Out still written with hyphens.
  • Open the FastICA converter form and see the whiten options shown as Arbitrary variance and Unit variance.
  • Run a RAG session with a BM25 or MMR retriever, open the retrieval trace and see the retriever parameters separated by commas.
  • Switch the language to German and see the converter names Spaltenarithmetik and Varianzschwellenwert, and the statistical test Shapiro-Wilk-Test.

Notes (optional)

  • Hyphen kept because the standard spelling has it: English Cross-Validation, K-Fold, Shapiro-Wilk, t-test, TF-IDF, Under-Sampler, built-in; Spanish and Portuguese One-Hot, n-grama, Precisão-Revocação, Pré-processamento, palavras-chave; German Feature-Engineering, KNN-Imputierer, Shapiro-Wilk-Test, Post-hoc-Test, Kopf- und Fußzeilen; Chinese K-均值, TF-IDF 检索器, 最小-最大缩放器.
  • Hyphen cleaned because it is optional or not standard: English re-ranking, sub-queries, non-parametric, pre-trained, post-hoc, as-is; Spanish pre-entrenado, Sobre-muestreo, neg-entropía; Portuguese não-paramétrico, Sub-amostrador, Qui-2; German Spalten-Arithmetik, Basis-Schätzer, Zufalls-Seed, Stützvektor-Klassifikator; Chinese 英语-罗曼语翻译.
  • Independent of Add missing component display names #1075 and mergeable in either order. The standard term list already includes the German names that Add missing component display names #1075 adds (F1-Score, RAG-Pipeline, Hub-Download, Davies-Bouldin-Index).

@Irozuku Irozuku added bug Something isn't working back Backend work area: RAG Retrieval-augmented generation labels Dec 5, 2026

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

area: RAG Retrieval-augmented generation back Backend work bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant