{"id":13827730,"url":"https://github.com/shahinism/python-negar","last_synced_at":"2026-04-08T19:33:00.231Z","repository":{"id":4184607,"uuid":"5301801","full_name":"shahinism/python-negar","owner":"shahinism","description":"Negar trying to be a spell corrector for persian language.","archived":false,"fork":false,"pushed_at":"2025-02-07T05:58:23.000Z","size":3355,"stargazers_count":39,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-12T22:39:39.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://shahinism.github.com/python-negar/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shahinism.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-08-05T07:52:09.000Z","updated_at":"2025-08-01T23:02:32.000Z","dependencies_parsed_at":"2024-11-20T07:34:27.534Z","dependency_job_id":"010089d5-9e59-48c5-aefd-0dbefbeb0d8f","html_url":"https://github.com/shahinism/python-negar","commit_stats":{"total_commits":193,"total_committers":3,"mean_commits":64.33333333333333,"dds":"0.49222797927461137","last_synced_commit":"e5e225191e63bad6daaf6c70d8c07576ad6acdc3"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/shahinism/python-negar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahinism%2Fpython-negar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahinism%2Fpython-negar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahinism%2Fpython-negar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahinism%2Fpython-negar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shahinism","download_url":"https://codeload.github.com/shahinism/python-negar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shahinism%2Fpython-negar/sbom","scorecard":{"id":815185,"data":{"date":"2025-08-11","repo":{"name":"github.com/shahinism/python-negar","commit":"492ff4b1e0adeff0751dd692636fee5f57c43463"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: pipCommand not pinned by hash: Makefile:20","Warn: pipCommand not pinned by hash: Makefile:23","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.1.3 not signed: https://api.github.com/repos/shahinism/python-negar/releases/64047217","Warn: release artifact 1.1.1 not signed: https://api.github.com/repos/shahinism/python-negar/releases/63922187","Warn: release artifact 1.0.2 not signed: https://api.github.com/repos/shahinism/python-negar/releases/63577802","Warn: release artifact 1.0.1 not signed: https://api.github.com/repos/shahinism/python-negar/releases/63548286","Warn: release artifact 1.1.3 does not have provenance: https://api.github.com/repos/shahinism/python-negar/releases/64047217","Warn: release artifact 1.1.1 does not have provenance: https://api.github.com/repos/shahinism/python-negar/releases/63922187","Warn: release artifact 1.0.2 does not have provenance: https://api.github.com/repos/shahinism/python-negar/releases/63577802","Warn: release artifact 1.0.1 does not have provenance: https://api.github.com/repos/shahinism/python-negar/releases/63548286"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T14:08:07.405Z","repository_id":4184607,"created_at":"2025-08-23T14:08:07.406Z","updated_at":"2025-08-23T14:08:07.406Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T09:02:06.334Z","updated_at":"2026-04-08T19:33:00.202Z","avatar_url":"https://github.com/shahinism.png","language":"Python","readme":"﻿Negar\n==========\n[![PyPI](https://img.shields.io/pypi/v/python-negar)](https://pypi.org/project/python-negar/)\n[![repo size](https://img.shields.io/github/repo-size/shahinism/python-negar.svg)](https://github.com/shahinism/python-negar/archive/master.zip)\n[![GitHub forks](https://img.shields.io/github/forks/shahinism/python-negar)](https://github.com/shahinism/python-negar/network)\n[![GitHub issues](https://img.shields.io/github/issues/shahinism/python-negar)](https://github.com/shahinism/python-negar/issues)\n[![GitHub license](https://img.shields.io/github/license/shahinism/python-negar)](https://github.com/shahinism/python-negar/blob/main/LICENSE)\n[![Downloads](https://pepy.tech/badge/python-negar)](https://pepy.tech/project/python-negar)\n[![Downloads](https://pepy.tech/badge/python-negar/month)](https://pepy.tech/project/python-negar)\n\nNegar is an editor(=virastar in Persian) for Persian text. The project is initially inspired by [virastar](https://github.com/aziz/virastar/blob/master/lib/virastar.rb). Thank you [Aziz](https://github.com/aziz) for your great job.\n\n## [Demo View ![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://negar-web.streamlit.app/)\n\nInstallation\n==============\n\n## PyPi\n\n**python-negar** is available on [PyPi](http://pypi.python.org/pypi/python-negar):\n\n    $ pip install python-negar\n\n## Git\n\nYou can get the latest stable changes from the GitHub server:\n\n    $ git clone https://github.com/shahinism/python-negar.git\n    $ cd python-negar\n    $ python setup.py install\n\n## Zip, Tarball\n\nYou can download the latest tarball.\n\n### *nix\n\nGet the latest tarball \u0026 install:\n\n    $ wget -O python-negar-master.tar.gz https://github.com/shahinism/python-negar/archive/master.tar.gz\n    $ tar xvzf python-negar-master.tar.gz \u0026\u0026 cd python-negar-master\n    $ python setup.py install\n\n### Windows\n\nDownload the latest zip archive.\n\nhttps://github.com/shahinism/python-negar/archive/master.zip\n\nDecompress it, and run the following command in the root directory of `python-negar`\n\n    $ python setup.py install\n\n#### Requirements\n\n    $ pip install regex\n\nUsage\n======\n\nCalling by default options:\n\n    from negar.virastar import PersianEditor\n\n    test = r\"\"\"قابلیت های ویراستار ' نگار  ':\n    * جایگزینی\n    + خط تیره های پیاپی نظیر (--) و (---) با معادل های استاندارد شان\n    + سه نقطه ی پیاپی (...) با کاراکتر استانداردش در زبان فارسی\n        + علایمی نظیر کوتیشن فارسی با گیومه ؛  'نگار'\n        + اعداد عربی '١٢٣٤٥٦٧٨٩٠' و انگلیسی '1234567890'  با معادل فارسی\n        + کاراکتر های غیر فارسی نظیر ',;%يةك' با معادل های فارسی\n\n    * تنظیم فاصله\n        + کلماتی که با 'ی' پسوند همراه هستند مانند 'همه ی ' -- و البته امکان جایگزینی آن با حمزه 'ء' ( در صورت انتخاب کاربر )\n        + پرانتز ها  یا دیگر علایم ؛ ( نگار )\n        + علائم نقطه‌گذاری ؛ بدون فاصله از قبل و با یک فاصله از بعد به استثنای اعداد اعشاری مانند 12.4\n        + در پیشوند کلمات با نیم‌فاصله نظیر ' می شود '، ' میشود '، ' بی شک '، ' بیشک ' , ' خانه اش '، ' وظیفه شناس ' ، ' کمک تان '  و یا ' نمیرود '\n        + در پسوند کلمات با نیم‌فاصله نظیر کتابها، خوشترین -- و البته امکان عدم تنظیم (در صورت انتخاب کاربر)\n\n    * جلوگیری از\n        + استفاده ی بیش از یک علامت ؟؟؟؟ یا !!!\n        + کشیـــــــــدگـــــــــــــــــی در کــــــــــــلمــــات\n        + فضا های         خالی     بیش          از       حد\"\"\"\n\n    print(PersianEditor(text))\n\nresult:\n\n    قابلیت‌های ویراستار «نگار»:\n    * جایگزینی\n    + خط تیره‌های پیاپی نظیر (–) و (—) با معادل‌های استانداردشان\n    + سه نقطه‌ی پیاپی (…) با کاراکتر استانداردش در زبان فارسی\n        + علایمی نظیر کوتیشن فارسی با گیومه؛ «نگار»\n        + اعداد عربی «۱۲۳۴۵۶۷۸۹۰» و انگلیسی «۱۲۳۴۵۶۷۸۹۰» با معادل فارسی\n        + کاراکترهای غیر فارسی نظیر «، ؛ ٪یهک» با معادل‌های فارسی\n\n    * تنظیم فاصله\n        + کلماتی که با «ی» پسوند همراه هستند مانند «همه‌ی» – و البته امکان جایگزینی آن با حمزه «ء» (در صورت انتخاب کاربر)\n        + پرانتزها یا دیگر علایم؛ (نگار)\n        + علائم نقطه‌گذاری؛ بدون فاصله از قبل و با یک فاصله از بعد به استثنای اعداد اعشاری مانند ۱۲.۴\n        + در پیشوند کلمات با نیم‌فاصله نظیر «می‌شود»، «می‌شود»، «بی‌شک»، «بی‌شک»، «خانه‌اش»، «وظیفه‌شناس»، «کمک‌تان» و یا «نمی‌رود»\n        + در پسوند کلمات با نیم‌فاصله نظیر کتاب‌ها، خوش‌ترین – و البته امکان عدم تنظیم (در صورت انتخاب کاربر)\n\n    * جلوگیری از\n        + استفاده‌ی بیش از یک علامت؟ یا!\n        + کشیدگی در کلمات\n        + فضاهای خالی بیش از حد\n\nEnabling extra features/args:\n\n    ##\n    args = []\n    args.append('fix-english-quotes')\n    args.append('cleanup-spacing')\n    print(PersianEditor(text, *args))\n\n\nFull list of args with description:\n\n    --fix-dashes                 Disable fix dashes feature\n    --fix-three-dots             Disable fix three dots feature\n    --fix-english-quotes         Disable fix english quotes feature\n    --fix-hamzeh                 Disable fix hamzeh feature\n    --hamzeh-with-yeh            Use 'Hamzeh' instead of 'yeh' for fix hamzeh feature\n    --fix-spacing-bq             Disable fix spacing braces and qoutes feature\n    --fix-arabic-num             Disable fix arabic num feature\n    --fix-english-num            Disable fix english num feature\n    --fix-non-persian-chars      Disable fix misc non persian chars feature\n    --fix-p-spacing              Disable fix prefix spacing feature\n    --fix-p-separate             Disable fix prefix separating feature\n    --fix-s-spacing              Disable fix suffix spacing feature\n    --fix-s-separate             Disable fix suffix separating feature\n    --aggresive                  Disable aggresive feature\n    --cleanup-kashidas           Disable cleanup kashidas feature\n    --cleanup-ex-marks           Disable cleanup extra marks feature\n    --cleanup-spacing            Disable cleanup spacing feature\n    --trim-lt-whitespaces        Disable Trim leading trailing whitespaces\n    --exaggerating_zwnj          Disable suffix separation as much as possible\n\nGUI \u0026 CLI\n======\nThere are two companions with this repository to support GUI and CLI, named `negar-gui` and `negar-cli`, respectively.\n\nBoth of them are available on PyPI.\n\n* https://pypi.org/project/negar-gui/\n\n* https://pypi.org/project/negar-cli/\n\n\n## Contributors\n\n\u003ca href=\"https://github.com/shahinism/python-negar/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=shahinism/python-negar\" /\u003e\n\u003c/a\u003e\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahinism%2Fpython-negar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahinism%2Fpython-negar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahinism%2Fpython-negar/lists"}