15 ms·
I wrote a script to automatically apply Grammarly corrections
- __boos 5y agoI am surprised no one ever gamified English exercises tailoring the learning experience on the basis of mistakes done by each individual user. You can identify clearly all your weakness, Grammarly fix the, why not building up exercises to fix them at its root?
- isneu 5y agodear __boos, I absolutely agree. Seeing how Grammarly suggests fixing in your writing has improved my writing too. How about we see this tool as something to apply when the job needs done and the suggestions are usually acceptable? Regarding those exercises portion, I am out of ideas as of now.
- isneu 5y agoYeah, well, if we could have "one-click" to fix it all, that'd be fantastic! Just felt like sharing here.
- Zenst 5y agoAppreciate showing this, I get how a one-click moment is what you need. Though my limited usage of Grammarly (few days). Even I have picked up a few - hmmm's in what it wants to change.
- isneu 5y agoI agree. For example, I had a text that said "grandpa grandma" and it suggested "grandpa's grandma!" Clearly not what I had in mind haha. But I am very happy that in my writing, it has showed me almost 98% proper fixes! I love that part of it.
- isneu 5y agoHi! I tweeted Grammarly and they shared it's a part of their premium feature. I agree. That would save A LOT of time!
- pronoiac 5y agoI'd say this "applies all Grammarly suggestions".
- floodle 5y agoConsiderable improvement
- yaur 5y agoWhat does it do when Grammarly disagrees with its self?
- isneu 5y agoHi Yaur. I had an instance when it started going back and forth between two suggestions that couldn't be fixed. I run the script and I also monitor what's going on to avoid such cases.
- isneu 5y agoI see. I will attempt more appropriate headlines now onwards. Thank you for sharing. It seems news.yc doesn't allow me to edit the headlines now else would have definitely changed!
- this-pony 5y agoWhat kind of documents are you typing that you wouldn’t want to learn from your mistakes? If you apply more than a handful of “fixes” at once, you cannot see what changed, right? And you also don’t know if the sentences still make sense? Or am I missing something here?
- fouc 5y agoThis is probably more for people pasting in a whole document and wanting to accept all suggestions all at once. Then they can review document after.
- isneu 5y agoYou are right! In such use cases, this is a huge time-saver! :D
- isneu 5y agoSounds so odd, right? I use it to apply fixes for transcription of YouTube videos. There, YouTube uses lower case for things without commas, caps, and periods. I use another tool called https://pinetools.com/remove-line-breaks https://pinetools.com/remove-line-breaks to add those things. Overall, it provides a good output. I do have to monitor so that it doesn't mess some things. Some use cases have tighter deadlines, relatively easier and non-serious suggestions. Regarding learning from mistakes, I vote that Grammarly definitely teaches us to write better.
- fouc 5y ago@isneu: I think you can make a bookmarklet out of your script
- isneu 5y agoWOW! That's amazing! I just learned about bookmarklets, and made one for this script. It requires us to remove the comments. Else it works like a charm! I love it. Many thanks! :D
- failedartifact 5y agoThe title makes it sound like its fixing 100s of Grammarly errors, as if Grammarly wasn't providing correct english responses. But as i understand, its enabling a 'I'm Feeling Lucky' kinda blanket fix on a document. Consider revising title.
- pronoiac 5y agoYup, I suggested another title because I first interpreted it as "correct all of the Grammarly autocorrupts".
- isneu 5y agoApologies for the misunderstanding. I'm corrected by helpful members of this community to do better.
- bloodyplonker22 5y agoIn a supreme twist of irony, he should write a script to correct this.
- isneu 5y agohaha great idea
- mcv 5y ago"Apply" sounds like a more correct word, then: "I wrote a script to automatically apply 100s of Grammarly corrections"
- Veen 5y agoGrammarly is wrong so often that I wouldn’t want to automatically apply fixes. My typical Grammarly workflow involves a rejecting most of its suggestions and approving the small proportion that actually make sense.
- mavelikara 5y agoWhat are some examples of suggestions Grammarly makes that you have to reject?
- Veen 5y agoFrom the document I'm working on now: - Your sentence may be unclear or hard to follow. Consider rephrasing. (the suggested rephrasing makes no sense and is ungrammatical). - Add a comma (the suggestion is to add a comma between "the" and "most" in the phrase "the most common") - Choose a different word (the suggestion is to exchange "heavy" for "cumbersome" when the topic is the weight of steel chain). - Variety (the suggestion is to swap "hooks" for "angles" when the topic is lifting hooks that attach to steel chains) Plus, I regularly see crap such as in this image. I've no idea what it thinks it's doing. https://i.postimg.cc/BvRfnfnP/image.png https://i.postimg.cc/BvRfnfnP/image.png Other oddities include Grammarly disagreeing with itself. I apply a suggestion, and then Grammarly flags its own change and suggests I change it back to the original or to something else.
- watwut 5y agoVariety in the context of technical document is wrong by default. You are not supposed to use variety of terms, you are supposed to pick one and stick with it.
- Veen 5y agoIndeed, which prompts me to mention one of the most annoying things about Grammarly. It irritates me no end when I deliver technical writing for a client and they respond with a list of "errors" of that sort after they have run it through Grammarly.
- Renaud 5y agoSpeaking of Grammarly, are there any good offline tools of similar scope and competency? I don't really relish the fact that these services have access to potentially very personal information. Even with the best of intentions, there is no guarantee that now or later some of the information ends up being used in novel and shady ways.
- Deukhoofd 5y agoHaven't tried it myself, but LanguageTool offers a selfhosted variant, that their software can easily switch to. https://languagetool.org/ https://languagetool.org/ https://dev.languagetool.org/http-server https://dev.languagetool.org/http-server
- maven29 5y agohttps://github.com/errata-ai/vale https://github.com/errata-ai/vale Linters for prose exist.
- CiceroCiceronis 5y agoHaving found myself doing some proofreading work, I rolled up a few regexes to locate common errors which sped up my workflow and increased my accuracy considerably.
- isneu 5y agoGood luck with your search @renaud!
- jonathanstrange 5y agoThat wouldn't work for me because many of Grammarly's corrections in my documents are clearly wrong. I'm using the Pro version. Grammarly is good for making suggestions but unusable for blind spell checking. It just doesn't know enough words, and some of its grammatical and style features also sometimes go astray.
- malshe 5y agoThis is my experience as well. I primarily use it to add missing commas, articles, etc. Sometimes it gives good suggestions for conciseness but I usually accept only about 50% of these suggestions.
- isneu 5y agoThat is great. I do a lot of reading before and only leave rooms for general suggestions such as punctuation, caps, spellings. I'd say I accept about 90%-95% of the suggestions.
- elondaits 5y agoParticularly in technical or STEM related writing I sometimes need to repeat a word more than what Grammarly likes, and can’t replace it with a synonym because it has a specific meaning (eg “training” in the context of AI). I also try to avoid passive voice as much as possible, but sometimes when talking about software, techniques or processes, it’s the clearest way. Still, I’m quite happy to have Grammarly’s suggestions.
- isneu 5y agoCheers @elondaits :)
- isneu 5y agommHm... I see your use case. I hope you find a way to improve your efficiency while working. Cheers!
- oceanghost 5y ago
- terrycody 5y agoSorry but how to use this? And could author make it a firefox plugin? That would be very handy!
- isneu 5y agoHi terry. It's easy. Copy the code from https://github.com/isneuu/autofix-grammarly-errors/blob/main/index.js https://github.com/isneuu/autofix-grammarly-errors/blob/main... For chrome or brave browser, go to your grammarly web, press F12 and paste that code. It will open what is called Console. For Firefox, press F12, and you'll see tabs starting with "INSPECTOR, CONSOLE, ..." Press console and paste the code. I haven't tried it for firefox as my primary browser is chrome. I've pasted the readme file for your convenience. 1. Go to Grammarly Web app 2. Go to Editor Settings, turn on "Auto-jump to the next suggestion" 3. I made it primarily for the "Correctness" tab in Grammarly. It also works for others. Please know that I'm eager to reply to your queries here and help you. This tool definitely helps. :)
- isneu 5y agoOr you can make a bookmarklets like I just learned from one comment here. Follow this process to make that bookmarklet: https://www.freecodecamp.org/news/what-are-bookmarklets/ https://www.freecodecamp.org/news/what-are-bookmarklets/ and paste the code: javascript: (() => { function refreshData() { x = 3; try { if (document.querySelector('.cards-replacements_labels-itemRemove') !== null) { var newclass = document.querySelector('.cards-replacements_labels-itemRemove'); newclass.click(); } else { var newclass = document.getElementsByClassName("cards-replacements_labels-itemInsert"); newclass = newclass[0]; newclass.click(); } } catch (error) { if ( document.getElementsByClassName("wrapper_fipkee2") !== null) { var cli = document.getElementsByClassName("wrapper_fipkee2"); var vli = cli[0]; vli.click(); } } setTimeout(refreshData, x*1000); } refreshData(); })(); I hope this helps! :)
- raverbashing 5y agoSure, "one click fix" then you wonder why it replaced place/product/people name with stuff that doesn't make sense. Grammarly probably should have a limited "autofix" for the most basic stuff, surely. But just "fix all" causes more problems than solves it.
- yaur 5y agoThey are obviously using us to train the system so that they can do that in a year or two.
- isneu 5y agoWow! I came across a new information!
- isneu 5y agoI agree. It definitely has some "wait what?!" moments. Its that in our subjective experience while using the app, I've largely had suggestions that could do just fine if implemented without my approval. But yes, there are cases where the "fix all" could cause more problems that it solves. :)
- 00000000005 5y agoWeird headline wording suggests grammerly is wrong and this guy fixed it.
- isneu 5y agoNow that a few have pointed, I definitely see it. Much appreciated what you took time to point out. Also, nice username.
- aargh_aargh 5y agoOff topic, but an interesting tidbit is that the grammar checking backend is built in lisp [1] and has been discussed on HN previously [2]: [1] https://www.grammarly.com/blog/engineering/running-lisp-in-production/ https://www.grammarly.com/blog/engineering/running-lisp-in-p... [2] https://hn.algolia.com/?q=grammarly+lisp https://hn.algolia.com/?q=grammarly+lisp
- isneu 5y agoWow! I only knew this now! Thank you. This language is older than my dad. Haha. The founder made it when he was in MIT. This made me wonder if I'll ever do something that will empower people to make something useful in the future. :) (This comment would be a pretty cool foreshadowing if my life were a movie haha)
- scim-knox-twox 5y agoCuriosity: why Grammarly and not LanguageTool? For me: English isn't my native language and LanguageTool have all languages I need.
- hdjjhhvvhga 5y agoGrammarly has a much bigger advertising budget - relatively few people heard about LanguageTool.
- scim-knox-twox 5y agoDepends on where you live…
- watwut 5y agoI get grammerly ads on youtube constantly.
- scim-knox-twox 5y agoAnd I never get any Grammarly ads. Again, depends on where you live…
- 2Gkashmiri 5y agoi do not use grammarly. been using languagetool in my libreoffice/kde neon but someday it works, someday it does not work. other than that, when it works it just works as advertised.
- scim-knox-twox 5y agoI never had any problems.
- alex23478 5y agoHaving used both, I find Grammarly much better for English texts. It has things like tone analysis, and in general has more in depth checks than LanguageTool. LanguageTool, on the other hand, supports more languages and is cheaper than Grammarly. It isn't bad for English texts, and will definitely help you with your writing, but not as much as Grammarly. It really depends on your needs. I use LanguageTool for my everyday needs, but when I'm writing a blog article, I make sure to run it through Grammarly.
- deleted 5y ago[deleted]
- taf2 5y agoAnyone read the code and find the lack of formatting kind of odd?
- isneu 5y agoHi taf2, yeah, now that you've pointed it out, I kinda understand it. I wrote the code in Ubuntu's text editor. I was in a rush to get my job done in time. However, now that you've pointed it out, I fixed it. Credit for this formatting goes to you :)
- elb2020 5y agoGrammarly ads say that they will help you to appear more articulate than you are, so that you can land jobs where articulacy is required. It stumps me a bit, always.
- isneu 5y agoEveryone has seen those Grammarly ads haha. Nice to hear your thoughts elb2020
- k__ 5y agoInteresting idea, but I wouldn't use it, because at 10-20% of Grammarly's corrections are wrong. It even includes endless loops.
- isneu 5y agoUmm hmm... I see so that's your experience. I did come across an instance of endless loops through the tool. My approach is to keep an eye on the kind of suggestions it gives to make sure it doesn't do weird stuff.