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.

Download
ActivePython

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)
 
Links
License
GPL

Negar

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

https://github.com/aziz/virastar/blob/master/lib/virastar.rb

Thank you Aziz.

It doesn't work completely now.

Screenshot & Features

You can run gui version like this:

negar --gui

![NegarsScreenshot](https://github.com/shahinism/python-negar/raw/master/docs/screenshot/window1.png)

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:

$ negar [ARGUMENTS] -f [INPUT_FILENAME] -o [OUTPUT_FILENAME]

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
--fix-three-dots
 Disable fix three dots feature
--fix-english-quotes
 Disable fix english quotes feature
--fix-hamzeh Disable fix hamzeh feature
--hamzeh-with-yeh
 Use 'Hamzeh' instead of 'yeh' for fix hamzeh feature
--fix-spacing-bq
 Disable fix spacing braces and qoutes feature
--fix-arabic-num
 Disable fix arabic num feature
--fix-english-num
 Disable fix english num feature
--fix-non-persian-chars
 Disable fix misc non persian chars feature
--fix-p-spacing
 Disable fix perfix spacing feature
--fix-p-separate
 Disable fix perfix separating feature
--fix-s-spacing
 Disable fix suffix spacing feature
--fix-s-separate
 Disable fix suffix separating feature
--aggresive Disable aggresive feature
--cleanup-kashidas
 Disable cleanup kashidas feature
--cleanup-ex-marks
 Disable cleanup extra marks feature
--cleanup-spacing
 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.