Repository navigation
New: transitivity, the passive, and the مدغم shape
mazini.lexiconkeeps each listed verb's ل / م / ك mark from the tables, which used to be dropped:transitivity(root, wazn)→"intransitive" | "transitive" | "both" | Nonelexicon_passive(root, wazn)→ the passive that follows from it:"pass"(transitive: ضُرِبْتُ),"ipass"(intransitive: جُلِسَ عَلَيْهِ only),"nopass"(patterns that never take one: فعُل, انفعل, افعلّ…), orNoneif not listed.
conjugate'spassiveargument also takes"pass","ipass"or"nopass"; anything else raisesMaziniError("bad_option"). The engine's guess from the pattern is often wrong for form I (it gives جلس a full passive, *جُلِسْتُ); passlexicon_passive(...)instead.reducible(root, wazn)says whether Arabic has the assimilated (مدغم) shape thatreduced=Trueproduces: تفعّل / تفاعل with ف in ت ث د ذ ز س ش ص ض ط ظ, انفعل with م, اتّخذ / اتّزر / اتّحد, اسطاع, افعنلل with ل1 و or ي.conjugatestill applies it to any root, as the Lua module does (*اِكَّتَّبَ).
conjugate's output with default arguments is unchanged, and the golden and book suites still pass (#6). Same API and the same lexicon data as mazini-js 0.3.0.
Install
pip install mazini==0.3.0PyPI: https://pypi.org/project/mazini/0.3.0/
Full Changelog: v0.2.2...v0.3.0