A rule-based grammar correction system.
For the Tk interface run:
./main.py tk
For the ncurses interface (TUI) run:
./main.py editor [input_file] [output_file]
Note that the TUI interface will overwrite the input_file
when no output_file
was provided without prompt.
To run all the tests run: ./main.py
Most of the rules were inspired by Daniel Naber work, while the rest are guessed manually by the team.
The project uses C5 tag-set, it guesses first the tags using PennTreebank set and converts them to C5 using a conversion map and apply dictionary lookup afterwards.
If you're using a recent Python version (3.7+), pattern
library will not work as it is in PyPI, you can either patch it manually or install a patched version instead.