bayan-api / src /app.py

Commit History

  1. FIX-50: Whitelist bypass for FIX-38 pronoun guard⁠

    904945c
  2. FIX-48v3: Create patches (not just mutations) for ه→ة⁠

    5f5d641
  3. Add debug logging to FIX-48v3

    ea6172b
  4. FIX-48v3: Whitelist-based ه→ة (replaces broken stem-IV approach)⁠

    e6ad007
  5. FIX-48v2: ه→ة pass moved AFTER grammar model⁠

    df6987b
  6. REVERT FIX-48: ه→ة pass caused 12 regressions (30% → revert to 54%)⁠

    6e06e1d
  7. FIX-48+49: ه→ة pass for IV words + trailing و in IV→IV guard⁠

    25e8406
  8. FIX-48: Dedicated ه→ة pass for IV words (الحكومه→الحكومة)⁠

    b4e9c60
  9. FIX-46: Expanded OOV cleanup with 4 new patterns⁠

    47dc3d5
  10. Disable edit-1 OOV cleanup (caused 3 regressions)⁠

    180a6a0
  11. FIX-45: Upgrade _levenshtein to Damerau-Levenshtein distance⁠

    e38dee9
  12. FIX-44: OOV cleanup pass between spelling and grammar stages⁠

    4655865
  13. Fix FIX-42b: Allow first-letter changes when root lengths differ⁠

    56ee1d0
  14. FIX-43: Route bidirectional OOV→IV fixes through spelling guard⁠

    f6ee28f
  15. Revert FIX-42c: Grammar feminine ending guard was too aggressive⁠

    adec9d0
  16. FIX-42: Multi-layer guards for spelling and grammar corruptions⁠

    47437bb
  17. FIX-41: Block spelling corrections that add trailing ا/ي/و to IV words⁠

    5369041
  18. FIX-38/39 + Layer 1/2/3: Benchmark normalization + spelling safety + grammar rules⁠

    79db738
  19. Audit fixes: narrow FIX-35 suffixes, raise FIX-37 threshold, remove duplicate sort⁠

    417db6e
  20. FIX-37: Rule-based terminal period fallback for punctuation⁠

    014e447
  21. FIX-33/34/35: Fix infinite loop — grammar corruption + spelling conflict⁠

    03cd504
  22. Phase 14c: Fix FIX-31 whitespace bug + fix misleading log truncation⁠

    80c9b7b
  23. Phase 14b: Fix spelling punct hallucination + cross-stage overlap⁠

    1e3f46f
  24. Fix: TerminalPunctuationGuard for short phrases and comprehensive Nasb/Jazm grammar rules fixes

    Bayan AI
    76b9ec3

  1. Refactor: Remove obsolete IVtoOOV filter to prevent False Negatives

    Bayan AI
    dd8a53f
  2. Fix: Add missing dual and plural IVtoOOV bypass rules in app.py

    Bayan AI
    d8125c8
  3. Fix: Reorder Jaccard filter in app.py to run after evaluating grammar bypass rules

    Bayan AI
    52e630f
  4. Fix: Strip trailing punctuation in grammar bypass rule to handle words at the end of sentences

    Bayan AI
    8fcecea
  5. Fix: Allow gender prefix swap (ي/ت) during feminine plural present tense bypass

    Bayan AI
    72df81e
  6. Fix: Add bypass rule for present tense feminine plural to prevent IVtoOOV rejection

    Bayan AI
    3da743f
  7. Phase 11.5: Adversarial diagnostic + 4 critical pipeline fixes⁠

    b33660c
  8. Phase 11: Hierarchical StageLocker — grammar overrides spelling locks⁠

    f8cef7c

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

    Mohamed Atef
    dda1c3d
  2. Phase 13: Fix spelling filter blind spots + eager model loading⁠

    Mohamed Atef
    d97d7bd
  3. Phase 12: Spelling pipeline integration + Benchmark integrity fixes⁠

    31f02a4
  4. Phase 11: Inline telemetry in API response⁠

    ae6bb8d
  5. Phase 11: Telemetry instrumentation + OffsetMapper tests⁠

    a1b4492
  6. FIX-27: Grammar structured data + hallucination protection⁠

    371c4c2
  7. FIX-25: Block grammar punct spacing (حالك؟→حالك ؟)⁠

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

    48bde4e
  9. FIX-23: Block grammar model tanween removal + HF log fetcher⁠

    727b112
  10. CRITICAL FIX: _DIRECTIONAL_BLOCKS was local scope → NameError in grammar diff filter⁠

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

    5e42d03
  12. Phase 13: Grammar SV/gender whitelist, preposition/nasb regex, pronoun-h guard⁠

    00b99d9
  13. Phase 12: Fix 6 batches — grammar pipeline bypass, religious/structured protection, punct rearrangement, SV/gender agreement⁠

    81c58cc
  14. Phase 11: Master Bug Fix — 23 fixes across 8 files⁠

    bfc07c3

  1. Phase 8: Fix all critical bugs from adversarial validation⁠

    76ea593
  2. feat: dialect-to-MSA conversion — backend API + frontend + Docker model cache

    7b67137
  3. fix: better quran import error logging to diagnose HF failure

    d46a23d
  4. feat: Quran verification & translation endpoint + modal UI (13 languages)

    0c80121