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

Add support for custom rule files #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WillJardee
Copy link

The CLI of languagetool offers a --rulefile flag to pass in a .xml file of rules. I have added a simple addition of it.

  • Updates README.md with details on how to use the option
  • Adds a g:grammarous#custom_rules variable
  • add --rulefile ... to cmdargs
  • checks the provided file exists and replaces all ' ' with '\ '

Tested to work with installed jar and preexisting cmd (only tested with languagetool packaged for Arch Linux, and on an Arch system). Tested to work with spaces.

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

Successfully merging this pull request may close these issues.

1 participant