bayan-api / src /app.py

Commit History

FIX-50: Whitelist bypass for FIX-38 pronoun guard
16ae935
Running

youssefreda9 commited on

FIX-48v3: Create patches (not just mutations) for ه→ة
75df207

youssefreda9 commited on

Add debug logging to FIX-48v3
1cb4790

youssefreda9 commited on

FIX-48v3: Whitelist-based ه→ة (replaces broken stem-IV approach)
3e90908

youssefreda9 commited on

FIX-48v2: ه→ة pass moved AFTER grammar model
2ff1e5e

youssefreda9 commited on

REVERT FIX-48: ه→ة pass caused 12 regressions (30% → revert to 54%)
71021ea

youssefreda9 commited on

FIX-48+49: ه→ة pass for IV words + trailing و in IV→IV guard
beaf00c

youssefreda9 commited on

FIX-48: Dedicated ه→ة pass for IV words (الحكومه→الحكومة)
b9b6999

youssefreda9 commited on

FIX-46: Expanded OOV cleanup with 4 new patterns
5bff09c

youssefreda9 commited on

Disable edit-1 OOV cleanup (caused 3 regressions)
4c374a9

youssefreda9 commited on

FIX-45: Upgrade _levenshtein to Damerau-Levenshtein distance
2673054

youssefreda9 commited on

FIX-44: OOV cleanup pass between spelling and grammar stages
4608bcd

youssefreda9 commited on

Fix FIX-42b: Allow first-letter changes when root lengths differ
32a135f

youssefreda9 commited on

FIX-43: Route bidirectional OOV→IV fixes through spelling guard
ebce6ef

youssefreda9 commited on

Revert FIX-42c: Grammar feminine ending guard was too aggressive
5dfa9cd

youssefreda9 commited on

FIX-42: Multi-layer guards for spelling and grammar corruptions
638b53d

youssefreda9 commited on

FIX-41: Block spelling corrections that add trailing ا/ي/و to IV words
a037662

youssefreda9 commited on

FIX-38/39 + Layer 1/2/3: Benchmark normalization + spelling safety + grammar rules
eae5d36

youssefreda9 commited on

Audit fixes: narrow FIX-35 suffixes, raise FIX-37 threshold, remove duplicate sort
27198e8

youssefreda9 commited on

FIX-37: Rule-based terminal period fallback for punctuation
76e008d

youssefreda9 commited on

FIX-33/34/35: Fix infinite loop — grammar corruption + spelling conflict
4616185

youssefreda9 commited on

Phase 14c: Fix FIX-31 whitespace bug + fix misleading log truncation
ca212fd

youssefreda9 commited on

Phase 14b: Fix spelling punct hallucination + cross-stage overlap
cfb4439

youssefreda9 commited on

Fix: TerminalPunctuationGuard for short phrases and comprehensive Nasb/Jazm grammar rules fixes
31a6db1

Bayan AI commited on

Refactor: Remove obsolete IVtoOOV filter to prevent False Negatives
dbc8941

Bayan AI commited on

Fix: Add missing dual and plural IVtoOOV bypass rules in app.py
100db1e

Bayan AI commited on

Fix: Reorder Jaccard filter in app.py to run after evaluating grammar bypass rules
44c30d6

Bayan AI commited on

Fix: Strip trailing punctuation in grammar bypass rule to handle words at the end of sentences
391a5b3

Bayan AI commited on

Fix: Allow gender prefix swap (ي/ت) during feminine plural present tense bypass
b55244c

Bayan AI commited on

Fix: Add bypass rule for present tense feminine plural to prevent IVtoOOV rejection
401d5ab

Bayan AI commited on

Phase 11.5: Adversarial diagnostic + 4 critical pipeline fixes
57104c1

youssefreda9 commited on

Phase 11: Hierarchical StageLocker — grammar overrides spelling locks
6f1ed4e

youssefreda9 commited on

Phase 13: Fix punctuation terminal injection filter (context-aware Rule 0)
c830869

Mohamed Atef commited on

Phase 13: Fix spelling filter blind spots + eager model loading
38a1924

Mohamed Atef commited on

Phase 12: Spelling pipeline integration + Benchmark integrity fixes
2883342

youssefreda9 commited on

Phase 11: Inline telemetry in API response
404f92d

youssefreda9 commited on

Phase 11: Telemetry instrumentation + OffsetMapper tests
6319518

youssefreda9 commited on

FIX-27: Grammar structured data + hallucination protection
609c035

youssefreda9 commited on

FIX-25: Block grammar punct spacing (حالك؟→حالك ؟)
c8cc451

youssefreda9 commited on

FIX-24: Block grammar model punct stripping (البلاد.→البلاد)
7954757

youssefreda9 commited on

FIX-23: Block grammar model tanween removal + HF log fetcher
d3a32e2

youssefreda9 commited on

CRITICAL FIX: _DIRECTIONAL_BLOCKS was local scope → NameError in grammar diff filter
9cae8f8

youssefreda9 commited on

Hotfix: Revert pronoun-h guard to ته-only (was breaking ta_marbuta), add directional blocks for عمله/لسانه/بيته/كتابه
b62e8ec

youssefreda9 commited on

Phase 13: Grammar SV/gender whitelist, preposition/nasb regex, pronoun-h guard
e909fa9

youssefreda9 commited on

Phase 12: Fix 6 batches — grammar pipeline bypass, religious/structured protection, punct rearrangement, SV/gender agreement
015c7b7

youssefreda9 commited on

Phase 11: Master Bug Fix — 23 fixes across 8 files
095e270

youssefreda9 commited on

Phase 8: Fix all critical bugs from adversarial validation
1159492

youssefreda9 commited on

feat: dialect-to-MSA conversion — backend API + frontend + Docker model cache
6222cc6

youssefreda9 commited on

fix: better quran import error logging to diagnose HF failure
4393710

youssefreda9 commited on

feat: Quran verification & translation endpoint + modal UI (13 languages)
6963862

youssefreda9 commited on