ropensci / spelling

Tools for Spell Checking in R
https://docs.ropensci.org/spelling
Other
107 stars 25 forks source link

provide support for multilanguage packages and projects #66

Closed ThierryO closed 2 years ago

ThierryO commented 2 years ago

This is PR adds a lot a functionality to spelling. Basically because I needed a easy way to spell R markdown projects. We often use multiple languages in a single project. E.g. a report written in Dutch with an English abstract and README. Or a package with function and documentation in English and a report template in Dutch.

I'm happy to do some more work on this PR if you want some more streamlining.

Changes

Tested with

jeroen commented 2 years ago

Thank you for the contribution. This is a very big PR, I am not sure where to start reviewing this.

Could perhaps (part of) this work as a separate package which depends on spelling? Or does it really need to change the internals of spelling?

ThierryO commented 2 years ago

Maybe it is easier for you if I split this over multiple PR's.

  1. check markdown and sweave file in inst folder (by default or optional?)
  2. ignore math and ignore patterns
  3. multi-language support for packages
  4. spell checking for rmd projects with multi-language support

This functionality makes spelling IMHO even more useful. I don't think the users would benefit from a 'competing' spell checking package.