Using Scrivener and Grammarly together

My writing group is discussing some great editing tools including Hemingway, ProWritingAid, and Grammarly. We like all of them, especially Grammarly, but those of us participating in the discussion are also die-hard Scrivener users and none of these tools have any kind of Scrivener plug-in. So what’s a writer to do if he or she wants to use the greatness that is Scrivener along with the excellent editing skills of one of these tools?

I took it upon myself to flex some of my day job (software engineer) skills and perform a little trial and error. Of the three tools listed above, the one I’m most interested in is Grammarly, so that’s the one I used. Also, I did all of this on a PC running Scrivener for Windows 1.8.6, Google Chrome, and the Grammarly plug-in for Word 2013.

Copy and Paste from Scrivener to Grammarly
For my first test, I copied the text of my Scrivener document to the clipboard and then pasted it into Grammarly’s online editor. But this technique failed before I could take a single piece of Grammarly’s advice. The copy-and-paste between Scrivener and the Grammarly online editor removed all of my text formattings. “And that ain’t too cool,” to quote Hendrix.

Here’s a sample sentence from Scrivener:
Italics-Original

And here’s the same sentence after being pasted into the Grammarly online editor:
Grammarly-NoItalics

I don’t use italics often, but I don’t want to lose them once I have them in place. And I’d rather not wait and apply them only to my final draft. So this technique failed.

Upload RTF to Grammarly
One advantage Grammarly has over some of its competitors is that in addition to copy-and-paste, you can upload a document file into its online editor. So for my second test, I found the Rich Text File (RTF) for my chapter-in-progress in its Scrivener folder and uploaded it to Grammarly. This technique didn’t work for me either. First, even with an uploaded RTF file, my formatting was lost. That disqualified it right there. But if that part had worked, Grammarly gives the option of downloading your edited document from their online editor back into its original format. So I downloaded the RTF of my original doc and then compared the original RTF to the Grammarly-edited one using a simple diff tool (WinMerge).

Scrivener-to-Grammarly
(Scrivener original RTF on the left, Grammarly edited RTF on the right.)

Eww! Grammarly changed the formatting of every single paragraph in the document. The paragraph formatting was so different from what Scrivener creates, I didn’t even try opening this new RTF there. Another fail!

Open RTF in Word with Grammarly plug-in and save it back to RTF
One advantage Grammarly has over some of its competitors is it offers a Microsoft Word plug-in. After you install it, you don’t even have to use the Grammarly web editor. You open your document in Word, apply Grammarly’s suggestions, save, and get on with life. For this test, I made a copy of my Scrivener RTF file, opened it in Word, edited one word, and saved it back to RTF. Then I used WinMerge to compare the original RTF to the new one.

Scrivener-to-Word
(Scrivener original RTF on the left, Word edited RTF on the right.)

This was getting embarrassing. This was an even worse mangling than the one Grammarly did to my RTF file. Times New Roman Baltic, what the heck? I don’t even use that font. I’m a Charis SIL man.

Copy-and-Paste from Scrivener to Word, edit, then copy-and-paste from Word to Scrivener
Around this time I was starting to think that to make this work, I was going to have to write some custom code to convert Grammarly RTF into Scrivener RTF. But before I took that route, I wondered what would happen if I copy-and-pasted text from Scrivener into Word, edited it, and then pasted the text back into Scrivener?

The first phase of this test passed. My italicized text made it from Scrivener to a new, blank Word document with the italics intact! But would it survive the return trip? I made a minor change and then copy and pasted the text from Word back into Scrivener, right over the top of the text already there. Then I saved it in Scrivener and compared the original, unedited RTF to the new one.

Scrivener-Copy-Paste-to-Word

Look at that! No mass editing of the formatting code for every paragraph in the document! In Scrivener, the doc looked identical, except the comma I added in Word after “ride” made it back over. Success!

Therefore, the best way to use Scrivener and Grammarly together seems to be:

  1. Copy your text from Scrivener to the clipboard
  2. Paste into Microsoft Word with the Grammarly plug-in installed
  3. Edit away, Ernest Hemingway
  4. Do not save! Instead, copy your text from Word to the clipboard
  5. Back in Scrivener, paste your text right over top of what was already there

This all works because copy and paste between Scrivener and Word keeps formatting intact while copy and paste between Scrivener and web windows doesn’t. Combine that with the Grammarly plug-in for Word and voila, your formatted text now has a relatively painless path between Scrivener and Grammarly and back.

There’s one big drawback to all of this and that is that as of today, Grammarly doesn’t have a plug-in for Microsoft Office on Mac. Boo! But I wonder if copy-and-paste between Scrivener and a browser other than Chrome might keep formatting intact? Or if pasting into Chrome for Mac might keep the formatting intact? If anyone figures out a way to use Scrivener and Grammarly together on Mac while keeping formatting intact, or of an even easier way to do it on Windows, I’d love to hear from you.

15 thoughts on “Using Scrivener and Grammarly together

  1. I have been trying to use Grammarly with scrivener. Thank you for documenting your testing. I have given up on keeping my formatting and just paste individual sections into Grammarly and then copy them back.

    Since I write primarily for ebooks the compiler overrides almost all of my formatting anyway.

    I really wish Grammarly had a plug-in for scrivener. That would make me subscribe to their service without hesitation.

  2. I do CNTRL A and copy to Word with Grammarly up, edit and send it back as well, whether I agree with Grammarly all the time (dialogue) or not. The best thing is that it forces you to edit down to phrasing. I have caught many a backwards paragraph, stupid call and response dialogue…Grammarly is a wonderful tool. The only issues I have are with straight and smart quotes and tab. However once returned to Scrivener a forced document convert to default fixes that. The last issue is that certain special character formatting doesn’t work in Word with Grammarly turned on.

    Even if it is a two step workaround it is worth it. Now, if Scrivener would just give us a retrievable cut bin…

  3. I agree. We do need an app for Scrivener. I do not want to do all of the things required here. It will be a major waste of my time. It would be nice if Scrivener could have a built in corrector within the program, since we all had to pay for it. I would have been willing to pay even more for Scrivener, had it contained this built-in ability, but it didn’t, so I already paid for it like it is. I’m wondering if there might be a way for the Scrivener program to create an add on for its own program. I think it would increase the sales of Scrivener dramatically!

  4. Thanks for posting this. My wife has suddenly (and gloriously) started churning out novels and I am trying to help edit them (a first pass, if you will). I have been investigating Scrivener, mainly as a tool for using Grammerly. She has produced a 60,000 word document as her first effort and grammerly copes badly with large documents. So, a plugin would be great!

  5. Thanks for your efforts here.
    I can only use the free versions, and Grammarly online only does chunks of 500 words at a time. The effort to cut 500 words from a section containing 1235 (est.) is painful. I haven’t actually tried the desktop part of the program, though I have added it to my browser, and I think it will work for my website posts, as well.
    Thanks again for doing the “Heavy lifting” in regards to trying to get it to work with Scrivener. I just thought about the possibility this morning.

    • July, 2017
      GOOD NEWS! Grammarly now has the app to add to Microsoft Office! Though I have not used it yet, I’ve downloaded it and will give it a try. If it does work, all one has to do is compile the documents to doc or docx and Grammarly should be able to give it the treatment.
      Fingers crossed…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s