Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Rules written in Rust #75

Open
shybyte opened this issue Jun 6, 2021 · 1 comment
Open

Support Rules written in Rust #75

shybyte opened this issue Jun 6, 2021 · 1 comment

Comments

@shybyte
Copy link
Contributor

shybyte commented Jun 6, 2021

Many useful LanguageTool rules are written in Java and not in the XML rule format (e.g. the A-Vs-AN rule which is kind of essential for me, because I always forget to write this correctly).
It would be great if nlprule would allow to rewrite these rules in Rust.

@bminixhofer
Copy link
Owner

Hi, thanks for the issue!

This is a good point. I am not willing to port and maintain Java Rules myself at the moment, but it would be good to have this possibility.

This will actually be solved to some degree by modularization (#72), which will split nlprule into individual components (each implementing one of the traits Tokenize (text -> tokens), Transform (tokens -> tokens (e.g. chunker)) or Suggest (tokens -> suggestions)).

I'll make sure that the traits are public so that another crate could implement e.g. an nlprule Suggester with ported Java Rules from LT.

I unfortunately can't give an ETA on modularization since I'm quite busy right now, but it will be soon-ish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants