Anyone here with package knowledge and can take a look at this grammarly-emacs integration and let me know if it seems like it could work...?

From what I gather, it's based on reversed engineered API, and I'm not sure how this would work on free accounts. I'd probably need to use use-package and I'm not sure 100% how ( used it once before).

· · Web · 2 · 2 · 0


Do you have use-package set up already?

If you do, probably something like this in your emacs config file:

(use-package grammarly
:ensure t
(defun test-on-message (data)
"On message callback with DATA."
(message "[DATA] %s" data))
(setq grammarly-username "") ; Your Grammarly Username
(setq grammarly-password "password") ; Your Grammarly Password
;; Set callback for receiving data.
(add-to-list 'grammarly-on-message-function-list 'test-on-message))

(Caveat: haven't tried it yet.)

If you haven't set up use-package yet, maybe (also)add something like this near the beginning of your emacs config file:

;; package setup
(require 'package)
(setq package-enable-at-startup nil)
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
(setq package-archives
'(("GNU ELPA" . "")
;; ("NonGNU" . "")
("ORG" . "")
("MELPA Stable" . "")
("MELPA" . ""))
'(("ORG" . 20)
("MELPA" . 15)
("MELPA Stable" . 10)
;; ("NonGNU" . 3)
("GNU ELPA" . 5)))


;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-install 'use-package))

(require 'use-package))

(use-package use-package
:ensure t
(require 'use-package))

@jrss I hope you get it figured out. I was a bit surprised to see you using grammarly. Since you're knowledge and care about privacy, what do you think of their privacy policy?

@shom I don't like using them. I have a dedicated junk account and I fill up captcha each time.

The closest thing, language tools, is not as good imo.

Recommendations? :)

@jrss ah gotcha! Unfortunately, I can't compare performance but proselint (emacs+flycheck+proselint) is interesting. But just looking at grammarly it's more comprehensive. I just wish it was device-side offline only (and better privacy policy to begin with).
I too would love to hear if others have better suggestions.

@shom I'll check it out. I miss certain things that I'm blind too so it's a must for me (plural vs singular, some tenses, typos such as read and reed etc...)

@jrss just noticed in the lsp-mode 8.0.0 announcement that they now have a grammarly language server.

@shom I'll need to dig more into this whole thing. I have a somewhat annoying workflow with grammarly at the moment, but it works. I need to put my head together and see what this integration does.

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!