Navigation Menu

Skip to content

motazsaad/arabic-spell-check-py

Repository files navigation

arabic-spell-check-py

Spell check for Arabic text using python

Installation

For hunspell, you need to install the following packages

sudo apt install hunspell-ar
sudo apt install libhunspell-dev
sudo apt install aspell
sudo apt install libaspell-dev
sudo apt install aspell-ar
sudo apt install aspell-ar-large
pip install hunspell
pip install aspell-python-py3

Usage hunspell

hunspell-check.py [-h] -i INFILE -o OUTFILE

Arabic spell checker based on hunspell. The input is a file and the output is errors with frequencies and suggestion.

Usage aspell

aspell-check.py [-h] -i INFILE -o OUTFILE

Arabic spell checker based on aspell. The input is a file and the output is errors with frequencies and suggestion.

Arguments:

-h, --help show this help message and exit

-i INFILE, --infile INFILE (input file).

-o OUTFILE, --outfile OUTFILE (output file).

references

  1. https://github.com/blatinier/pyhunspell docs: https://hunspell.github.io/ and https://en.wikipedia.org/wiki/Hunspell
  2. https://github.com/barrust/pyspellchecker and https://github.com/hermitdave/FrequencyWords docs: https://pyspellchecker.readthedocs.io/en/latest/quickstart.html
  3. https://github.com/linuxscout/yaraspell
  4. https://github.com/WojciechMula/aspell-python
  5. https://www.lfd.uci.edu/~gohlke/pythonlibs/ python wheels for Widnows

Releases

No releases published

Packages

No packages published

Languages