unconf17 icon indicating copy to clipboard operation
unconf17 copied to clipboard

The grammar of grammar

Open jasdumas opened this issue 7 years ago • 6 comments

Writing reports in RMarkdown has improved the way I communicate insights alongside code contained in one document, but I have spent numerous times re-working reports to remove silly mistakes in spelling and general grammar that the spell check in RStudio does not catch 😞

Project idea: Develop a package/tool that checks for grammar and avoids some obvious programming nomenclature in spelling such as:

  1. hex color codes

  2. known package names

  3. file extensions

  4. misspellings in comments or yaml header sections

The obvious alternatives are to use MS Word or Google Docs but I do enjoy just doing things in RStudio! (And I'm aware that this ticket basically admits that I'm bad at spelling and grammar)

jasdumas avatar Apr 23 '17 01:04 jasdumas

This is a great suggestion, it could take the form of an RStudio add-in that wraps up https://github.com/btford/write-good for R

benmarwick avatar Apr 23 '17 13:04 benmarwick

I'm still interested in this project as the second sub-bullet point from https://github.com/ropensci/unconf17/issues/5#issuecomment-302058661 incorporated as part of a testing package - anyone else?

jasdumas avatar May 17 '17 12:05 jasdumas

I'm going to be working on this also today: https://github.com/ropenscilabs/gramr

jasdumas avatar May 25 '17 19:05 jasdumas

In addition to write-good, there's also vale which has a neat plugin system.

naupaka avatar May 25 '17 23:05 naupaka

^ nice! Currenlty trying to wrap write-good in V8

jasdumas avatar May 26 '17 02:05 jasdumas

Repo: https://github.com/ropenscilabs/gramr

stefaniebutland avatar Oct 24 '17 18:10 stefaniebutland