CoolFace
Apppublic

Yousef1313/fusha

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes
App README

فصحى · Fusha

حوّل النص باللهجة المصرية أو السورية إلى الفصحى مع شرح كل كلمة غُيّرت. اكتشاف اللهجة تلقائي، والكل يعمل داخل متصفحك — لا خادم، لا تثبيت.

Explainable Arabic dialect → MSA converter. Paste Egyptian or Levantine text, get clean Modern Standard Arabic with a per-word explanation. Dialect is detected automatically; everything runs in your browser.

Source code: github.com/Yousef13133/fusha Built on sae-arabic.


Web demo internals

  • —fusha.js — port of the Python core (normalize, rules, lexicon, subject conjugation)
  • —data/fusha-lex.js — auto-generated lexicon bundle (from src/fusha/lexicons/*.json)
  • —app.js, index.html, styles.css — the UI
  • —test.js — parity tests vs the Python outputs (node test.js)

Regenerate the lexicon bundle after editing a lexicon:

bash
python scripts/gen_lex_js.py