vale
vale copied to clipboard
Vale and Venice.ai integration
Check for existing issues
- [x] Completed
Describe the feature
I've applied to the Venice Incentive Fund to build an AI-powered API integration for Vale.
The idea is to leverage Venice's private and secure AI infrastructure to bring two new features to Vale.
Natural language to YAML rule generation
You'll be able to provide a description of your rule along with a few examples that should (or shouldn't) match and Vale Studio will generate a valid Vale rule.
| Generator UI mock | Rule output |
|---|---|
|
|
|
| Natural language prompt and examples. | Valid, YAML-formatted Vale rule. |
Dynamic, in-editor alert solutions
In addition to the currently available in-editor Actions, you'll be able to make use of a wide array of AI-powered solutions -- such as "rewrite in active voice", "reduce readability score", etc. -- that you can define in your custom rules.
If this is something you'd like to see, feel free to react or comment.
I don't know anything about Venice or how it works, but my concern would be submitting proprietary content to an AI engine. Our company has strict rules about that.
That's a fair concern.
The idea here is to be 100% opt-in through either the use of the Vale Studio Rule Generator (you supply the prompt + examples) or in-editor Quick Fixes (that user's chose to define in their own rules).
There won't be any change for those that don't make use of these features.
I fully support the idea but it'll be up to the higher-ups to determine if we can use it or not. We use Vale on a daily basis. Thanks a lot.
Being able to configure the model used (ie., for a self-hosted or private model deployment) would be useful.
It's something I have been thinking about for ages, but was never completely sure where to start. I also had the Apple Style guide I wanted to turn into rule sets and was going to use it as an experiment. I also agree, leveraging local model tools such as Ollama or LM studio should also be helpful and is likely possible. Even CoPilot already hijacks some quick fix actions to "do the job"
You'll be able to provide a description of your rule along with a few examples that should (or shouldn't) match and Vale Studio will generate a valid Vale rule.
This is very exciting to me. I can often describe in natural language what I want to accomplish with a style rule but struggle sometimes with getting a correct combination of regex, Vale rule, and syntax that implements what I want to do. Spending time with regex and Vale documentation isn't necessarily a bad thing and often deepens my understanding of both, but sometimes I just want the rule so I can move on to actual quality checking and reviewing tasks.
The in-editor alerting is less exciting to me. I still mostly use Vale like a cave-person perhaps, running from a command line, and linting writing after the fact. When in an editor, I would rather not be distracted by alerts so I can focus on the writing. Similar idea to why someone might use a minimal text editor rather a WYSIWYG editor.
Thanks for creating and developing this amazing tool!