Open ssokolow opened 2 years ago
nlprule currently is not very easily extensible w.r.t custom rules.
To answer (2) you can look at https://github.com/bminixhofer/nlprule/tree/main/build. The binaries are compiled from a directory containing all needed resources. You could add your rules to the grammar.xml
in this directory and compile a new binary yourself.
That's fine in and of itself for now. I more intended this as a request for:
.bin
files or also the build of the Rust code used in the Python distributables and, if the latter, how to minimize the amount of needless work done when the intent is just to generate from a replacement grammar.xml
....ideally all together in a single "How to customize the grammar rules" section.
I agree, this should be improved.
To answer (2), I refer to the nlprule binaries as only the .bin files, not the build of the Rust code. But I see now where the confusion is coming from, maybe a different name would be better to refer to the LanguageTool data to avoid confusion.
You could just call them ".bin
files". That'd work.
I have a project where I'd prefer not to reinvent nlprule for applying my custom grammar rules (common validly-spelled typos I see in fanfiction), but the documentation is very unclear on how to do anything with custom rules.
.bin
files?