Adaptiven A1-Kurs und statistisches Aussprachetraining integrieren

Direkte DeepSeek- und Mistral-Anbindung mit versionierten Aktionsprofilen,
Budgetreservierung, Tokenabrechnung und administrativen Qualitätsprüfungen
ersetzen die Flowise-Abhängigkeit im regulären Betrieb.

840 geprüfte A1-Aufgaben mit geschützter Testauswertung und konkreten offenen
Arbeitsaufträgen ergänzen den Kurs. Inhalts- und Sprachbewertung bleiben von
Azure-Aussprachewerten getrennt; historische Aufgaben und Antworten bleiben erhalten.

Echte Wort- und Phonemmessungen werden mit Herkunft, Aktualität und Nachweisdichte
gebündelt. Go bestimmt Trainingsziele und Wiederholungen, das Modell formuliert
dazu passende Nachsprechübungen. Profilansicht und Auswahlgründe werden angezeigt.

Validierung: Go-Race-Tests mit lokaler PostgreSQL-Integration, go vet,
Web-Build, Audit aller 840 Aufgaben und drei Browser-Smokes mit lokalen
Modell-/Speech-Fixtures bestanden. Keine Produktionsänderungen oder Live-Aufrufe.
This commit is contained in:
Eugenius Naumenko
2026-11-01 23:23:20 +00:00
parent 83944f791e
commit e274eaab2b
186 changed files with 46676 additions and 257 deletions
+73
View File
@@ -0,0 +1,73 @@
package domain
import "time"
const PronunciationAlgorithm = "pronunciation-v1"
type PronunciationObservation struct {
AssessmentID string `json:"assessment_id"`
ExerciseID string `json:"exercise_id"`
Language string `json:"language"`
Locale string `json:"locale"`
Alphabet string `json:"alphabet"`
Kind string `json:"kind"`
Symbol string `json:"symbol"`
Word string `json:"word"`
WordIndex int `json:"word_index"`
PhonemeIndex int `json:"phoneme_index"`
Accuracy float64 `json:"accuracy"`
At time.Time `json:"at"`
}
type PronunciationExample struct {
Word string `json:"word"`
Mean float64 `json:"mean"`
Samples int `json:"samples"`
}
type PronunciationTarget struct {
Key string `json:"key"`
Kind string `json:"kind"`
Locale string `json:"locale"`
Alphabet string `json:"alphabet"`
Symbol string `json:"symbol"`
Mean float64 `json:"mean"`
WeakRate float64 `json:"weak_rate"`
Observations int `json:"observations"`
Samples int `json:"samples"`
Recordings int `json:"recordings"`
Tasks int `json:"tasks"`
Words int `json:"words"`
State string `json:"state"`
Trend string `json:"trend"`
LastSeen time.Time `json:"last_seen"`
NextReview *time.Time `json:"next_review,omitempty"`
ReviewDue bool `json:"review_due"`
Examples []PronunciationExample `json:"examples"`
Priority float64 `json:"priority"`
}
type PronunciationProfile struct {
Algorithm string `json:"algorithm"`
Language string `json:"language"`
AsOf time.Time `json:"as_of"`
WindowDays int `json:"window_days"`
ConfirmedRecordings int `json:"confirmed_recordings"`
UnverifiedHistory int `json:"unverified_history"`
Targets []PronunciationTarget `json:"targets"`
}
type PronunciationPlan struct {
ID string `json:"id"`
Algorithm string `json:"algorithm"`
Language string `json:"language"`
Category string `json:"category"`
Mode string `json:"mode"`
Reason string `json:"reason"`
Target *PronunciationTarget `json:"target,omitempty"`
RequiredWords []string `json:"required_practice_words"`
KnownWords []string `json:"known_words"`
CandidateWord string `json:"candidate_word,omitempty"`
TransferStatus string `json:"transfer_status,omitempty"`
CreatedAt time.Time `json:"created_at"`
}