Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.


python-negar is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)


Negar trying to be a spell corrector for Persian language. I'm working on new algorithm that I found from here:


Thank you Aziz.

It doesn't work completely now.

Screenshot & Features

You can run gui version like this:

negar --gui


How to install

First of all depend on you Distribution/Operation System install Pythons ‘setuptools’. In some Linux distribution its name is something like ‘pysetuptools’.

After that execute commands:

$ git clone https://github.com/shahinism/Negar.git $ cd Negar $ sudo python setup.py install

For now there is no requirements except Pythons standard library.

How to use

you can use me with a command like this:


Arguments are:

-h, --help Display this help and exit
-V, --Version Print version number and exit

System Message: WARNING/2 (<string>, line 45)

Option list ends without a blank line; unexpected unindent.

-f, --file[=INPUT_FILE_NAME] Specify [INPUT_FILE]. The file who you want to edit -o, --output[=OUTPUT_FILE_NAME] Specify [OUT_PUT_FILE]. The file who you want the programs

System Message: ERROR/3 (<string>, line 47)

Unexpected indentation.
output writes into it. If you don't specify this option Negar will generate an auto file to save the result.

System Message: WARNING/2 (<string>, line 49)

Block quote ends without a blank line; unexpected unindent.
--gui Run negars graphical user interface (GUI)
--fix-dashes Disable fix dashes feature
 Disable fix three dots feature
 Disable fix english quotes feature
--fix-hamzeh Disable fix hamzeh feature
 Use 'Hamzeh' instead of 'yeh' for fix hamzeh feature
 Disable fix spacing braces and qoutes feature
 Disable fix arabic num feature
 Disable fix english num feature
 Disable fix misc non persian chars feature
 Disable fix perfix spacing feature
 Disable fix perfix separating feature
 Disable fix suffix spacing feature
 Disable fix suffix separating feature
--aggresive Disable aggresive feature
 Disable cleanup kashidas feature
 Disable cleanup extra marks feature
 Disable cleanup spacing feature

System Message: WARNING/2 (<string>, line 67)

Option list ends without a blank line; unexpected unindent.
--add-untouch-list[=FILE] Add a list of words from 'FILE' to untouchable list.
The list 'fix-s-separate'& 'fix-p-separate' use to add true spacing

Subscribe to package updates

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.