bayan-api / src /app.py

Commit History

Update extension UI, app pipeline, and Spelling Rules
75e0099

youssefreda9 commited on

Update extension UI, app pipeline and model loaders
9c49fff

youssefreda9 commited on

Fix SC013 structured data punctuation guard
8374b8c

youssefreda9 commited on

Fix SC* pipeline failures: Add Universal Structured Data Protection for Spelling and Grammar models to prevent JSON/Code/Entity corruption
b85e858

youssefreda9 commited on

Fix SC* pipeline failures: Add Universal Structured Data Protection for Spelling and Grammar models to prevent JSON/Code/Entity corruption
0ccc4a6

youssefreda9 commited on

Fix 30 NLP edge cases in Grammar, Spelling, and Punctuation (Phase 10 results and Extension UI improvements)
be32617

youssefreda9 commited on

fix: enable punctuation model for clean texts while keeping structural guards
4c96cad

youssefreda9 commited on

Revert recent unstable commits
6782e52

youssefreda9 commited on

fix: regression fixes for structured content, religious text and benchmark string matching
bdf0b17

youssefreda9 commited on

feat: always run punctuation even on text without spelling/grammar errors
5cafd31

youssefreda9 commited on

fix(pipeline): skip punctuation on clean text, fix collision scoring, add digit guard
d6a3eb3

youssefreda9 Claude Opus 4.6 commited on

Fix collision benchmark failures: patch overlap mapping, tokenization guard, and rule hallucinations
df5e501

youssefreda9 commited on

Fix punctuation alignment and hallucinations, add punctuation safety rules, add kana/inna grammar rules
9786f39

youssefreda9 commited on

Fix collision resolution and punctuation patch application errors
8f8ed51

Bayan AI commited on

Phase 15: Bypass StageLocker for S-V Grammar collision overlap fixes
e661f43

Bayan AI commited on

refactor: simplify architecture and replace whitelists with CamelTools
ebd15e7

Bayan AI commited on

FIX-50: Whitelist bypass for FIX-38 pronoun guard
904945c

youssefreda9 commited on

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

youssefreda9 commited on

Add debug logging to FIX-48v3
ea6172b

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

FIX-46: Expanded OOV cleanup with 4 new patterns
47dc3d5

youssefreda9 commited on

Disable edit-1 OOV cleanup (caused 3 regressions)
180a6a0

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

Fix FIX-42b: Allow first-letter changes when root lengths differ
56ee1d0

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

FIX-42: Multi-layer guards for spelling and grammar corruptions
47437bb

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

Audit fixes: narrow FIX-35 suffixes, raise FIX-37 threshold, remove duplicate sort
417db6e

youssefreda9 commited on

FIX-37: Rule-based terminal period fallback for punctuation
014e447

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

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

youssefreda9 commited on

Fix: TerminalPunctuationGuard for short phrases and comprehensive Nasb/Jazm grammar rules fixes
76b9ec3

Bayan AI commited on

Refactor: Remove obsolete IVtoOOV filter to prevent False Negatives
dd8a53f

Bayan AI commited on

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

Bayan AI commited on

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

Bayan AI commited on

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

Bayan AI commited on

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

Bayan AI commited on

Fix: Add bypass rule for present tense feminine plural to prevent IVtoOOV rejection
3da743f

Bayan AI commited on

Phase 11.5: Adversarial diagnostic + 4 critical pipeline fixes
b33660c

youssefreda9 commited on

Phase 11: Hierarchical StageLocker — grammar overrides spelling locks
f8cef7c

youssefreda9 commited on

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

Mohamed Atef commited on

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

Mohamed Atef commited on