Commit Graph
6 Commits
Author SHA1 Message Date
Antigravity 52db766b23 fix(dictionary): strip Latin romanization debris from Russian translations and sanitize dictionary cache 2026-10-06 23:08:54 +03:00
Antigravity 532e2ec3b2 fix(ai,reader): robust sentence segmentation without abbreviation cutoffs & context-aware literary translation
- Implement robustSentenceSplit across reader.js and backend (miner.py, cefr.py) to prevent false cutoffs on honorifics (Mr., Mrs., Dr.), single-letter initials (John F. Kennedy), decimals, acronyms (U.S., U.K.), and abbreviations (No. 4, etc.)
- Upgrade translation prompt to professional literary Russian, eliminating literal word-for-word translation and preserving titles/honorifics
- Inject surrounding paragraph context into translation API to avoid out-of-context translations
- Inject offline dictionary hints into LLM prompt for accurate contextual word meaning
- Prefer qwen2.5:3b for higher translation fluency and fidelity
- Purge truncated cache entries from sentence_translations and restore Card 30 (briefcase) with authentic full sentence
- Bump Service Worker cache to notes-v6.0
- Add unit tests for robust sentence splitting, prompt formatting, and translation API
2026-10-06 22:32:36 +03:00
Antigravity 3098d3016d fix(cefr): resolve authentic context sentence per term and repair legacy SRS cards
- Add resolve_context_sentence_for_term to replace placeholder blanks and lookup authentic sentences from cefr_questions or books
- Fix dual mistake ingestion in process_cefr_answer to assign distinct context to target and chosen distractor
- Provide authentic context_sentence in options_breakdown and pass it via data-context in cefr.js
- Add repair_mismatched_cefr_contexts in database.py to automatically repair cards with placeholder blanks
- Bump Service Worker cache to notes-v5.9
- Add test_cefr_context_resolution_and_repair covering resolution, dual ingestion, manual add, and DB repair
2026-10-06 22:17:51 +03:00
Antigravity c9da5bd351 feat: background tasks manager and book sentence mining for CEFR tests 2026-10-06 16:36:39 +03:00
Antigravity a2eb26ced5 feat(cefr): dual mistake ingestion, 1-tap options breakdown, and 260 curated questions 2026-10-06 15:57:07 +03:00
Antigravity 3fae321322 feat(cefr): CEFR level testing and automated gap ingestion engine (Task 15) 2026-10-06 15:24:33 +03:00