bayan-api / src /app.py

Commit History

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

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

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

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

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

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

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

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

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

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

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

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

    1e3f46f
  13. 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
  5. revert: restore backend to 1a76471, keep all UI/UX improvements

    9e51f9d
  6. revert: restore backend/model files to cf07939 state, keep UI/UX changes only

    143c028
  7. fix: accept ص↔س/ض↔ظ/ذ↔ز spelling corrections (المدرصة→المدرسة), fix punctuation dup regex

    7f9c54f
  8. fix: grammar/quran icons different, tooltip no strikethrough, punctuation no duplicate dots

    7d889f4
  9. UI: nav logo, bayyinah hover, quran icon, hero autocomplete shadow, clean tooltip, fix punctuation dup + hamza كان

    20a34f1

  1. fix: block grammar كان→كأن + punctuation mid-word split (الدفت.ر)

    08a99f9
  2. feat: P1-P3 all 8 items - ta marbuta fix, UI feedback, caching, rate limiting, unit tests

    918deb4
  3. fix: block grammar model from removing/normalizing punctuation marks

    de7e7ce
  4. feat: P1-P3 improvements + auto re-analyze after apply⁠

    a2f1290
  5. fix: Pipeline hardening - 37 bugs + 10 edge cases (Round 1 + Round 2)⁠

    acba693
  6. fix(spelling): strict ortho-only filter prevents word corruption⁠

    e0bf168