230 points · by feross · 4y ago · 94 comments
There is an attempt to build and open source version of Grammarly using vale rules here[1]. Rules are mainly regex based, but some target readability measures[2] or use parts of speech[3].
[1]: https://github.com/testthedocs/Openly
[2]: https://github.com/testthedocs/Openly/blob/master/Openly/Rea...
I would not use anything closed source and bloated as Word. I wrote my BSc. thesis in it in the 2000s. Could not open it correctly anymore after 5 years. It took ages to open.
Switched to vim and latex for my master and phd thesis. Never looked back ...
Very poorly worded on my part.
I won’t use another office product from them if so.
Seriously.
When enabled, it does basically send every keystroke to the mothership except in some fields on webpages and on mobile apps marked sensitive.
However, they do have what seems like a solid privacy policy in how they handle the data they receive.
To over-simplify, vale runs hundreds of pre-built regexes that suggest changes to over-used phrases, likely function names etc etc. Google etc have pre-built fairly good defaults I suspect.
(To be fair this is trying to get consistency across huge document bases, and will never replace a human's authentic voice for communication. But sometimes you just want to make sure there are the same number of blueberries in each muffin)
Ok - my mission after next - get something like this brought in at work
* creating my own style guide
* using one of the existing ones
We have a DevDocsReadme that has some style rules we enforce manually. Is the best way to get going with vale to start with that doc and write rules for that?
Can you apply rules to asciidoc and markdown source docs, or do you have to apply it to the end product (HTML, etc)?
It seems like such a cool idea. Any pointers to 'get started' for existing largeish documentation sets would be much appreciated. (I will read your tutorial, @remoquete.)
Leave it to the tech industry to really exemplify the “when all you have is a hammer…” mentality.
Obviously, linters can produce many false positives--they shouldn't be used blindly.
But obviously enough people disagree that this is a thing.. although that could be said for quite a number of “technical progress” milestones we currently celebrate.
I wonder if tools like grammarly have this problem..
They aren't, typically, talking about the kind of stuff that you work on in a creative writing elective you take one semester. The very same class, in fact, that gave you this presumptuousness.
What details? Things like "do you use 's for possessives even for a word/name ending in s, or is it s'?" or "oxford comma or no?". Writers argue over these just like programmers argue over tabs v spaces or the place of braces. Sure, if you're just blogging for personal use, go crazy, don't worry about a consistent style, do what you want. When writing for publication, instead of arguing over whether or not it's ok to use certain slang or contractions, the editors just chose a preferred way.
Tools like Vale streamline the process of aligning to a style, just like coding style checkers and autoformatters relieve programmers of the tedium fixing up all the indentation manually.
TFA is explicitly targeting technical writing.
It's like writing is a complex activity, and just one of its sub-tasks is editing prose.
Ultimately, it is the technical limitations that make the tool unusable for me. On one hand, a Github-flavoured markdown parser is used. It filters out some obscure HTML tags such as `mathp`, and I couldn’t find a way to configure the tool so it would ignore the math segments. I even tried to forgo vale’s built-in markdown converter, and run the check on the output of the static site generator instead, but that plan was quickly foiled by the soft hyphens my generator inserts. Given such an input vale considers every syllable a separate word.
I strongly suggest learning to write better instead of relying on this. There are writing classes. There are teachers. There are editors. And if all of that is too expensive for you, ask friends and colleagues for feedback.
Relying on algorithms to improve your style is at best a no-op, and at worst actively harmful to good writing.
There's no law saying that you have to get all of your phrasing and flow perfect the first time around.
The tool described in this blog post is all about text-based rules: what the _text_ ought to look like. To improve your own writing (a) learn who your readers are, (b) know what they value, and (c) write so that as readers, they find your work valuable to them.
[1] https://youtu.be/vtIzMaLkCaM [2] https://youtu.be/aFwVf5a3pZM
Writing, like programming, is a task that involves work at multiple levels.
Not sure if it makes sense as an LSP, but if it was i could hook it into my editor of choice (Helix, at the time of writing) easily
Even something arguably well-executed and compatible with "established" style heuristics, like Grammarly, will always be dubious, as they perpetuate the myth of linguistic prescriptivism weaponized by language pedants. All of whom are annoyingly, vocally, interminably incorrect.
But this, this is just baldly idiotic.
Vale also has multiple severity levels, so disabling e.g. the "suggestion" (and maybe even "warning") level while writing live would make a lot of sense.
Not even true. They recommend against first person singular.
Not exactly selling the value of vale when I see "let's" used like this.
I’ve tried all the GUIs that compile for the Mac. I can’t stand a single one of them.
I can’t stand using vim / nvim on the terminal for most of my editing. Not sure why, but that’s my reasoning.
That's what most of my personal "resistance" is about. The rest is due to fact that I'm still a little bitter from some bad interactions with some early neovim developers and fans.
I find configuration frameworks, which are so popular right now, a lot of work to understand and not very flexible/opinionated.
Lastly, vim is usually available everywhere, so I am just a git clone away from having my configuration deployed.
1: https://github.com/dense-analysis/ale/blob/master/supported-...
>Download a latest version of vale from their github releases page.
Looks like Vale took a break in this section.
Having to provide a configuration file for every little fucking thing and completely refusing to have any set of reasonable defaults when you install a package is the worst part of Neovim.