Skip to content

feat: Add Cross-Lingual Semantic Alignment & Drift Visualizer #30

Description

@scheuclu

Description

Enable users to map how semantic concepts align or drift across languages (e.g. comparing "apple", "manzana", "apfel" in a shared multilingual vector space).

Implementation Checklist

  • Model Selection & Precomputation:
    • Use a multilingual sentence/word model (e.g. sentence-transformers/LaBSE or multilingual-e5-small) to generate aligned vectors for a shared lexicon (~1,000 common concepts in English, Spanish, French, German).
    • Project the joint vectors to a shared 2D coordinate space using UMAP.
  • Frontend Interface:
    • Create a /multilingual route that shows a dual-galaxy or overlay view of languages.
    • Highlighting a word in English automatically draws connection lines to its translation equivalents in other languages, showing the distance/drift (e.g., "compromise" in English might sit differently from "compromiso" in Spanish due to cultural variations).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions