Skip to content

Red1C3/grammarully-0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grammarully-0

A rule-based grammar correction system.

Usage

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

Rules-Set

Most of the rules were inspired by Daniel Naber work, while the rest are guessed manually by the team.

POS Tag-Set

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.

Troubleshoot

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.

License

GPL-3.0-or-later