-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add spell check for Spanish too #10
base: main
Are you sure you want to change the base?
Conversation
But actually this generates a lot of noise, because in the Spanish files we have English text, like titles of blog post. I'm not sure how to handle this yet. |
f <- list.files (devguide_path (), | ||
pattern = "\\.Rmd", | ||
recursive = TRUE, | ||
full.names = TRUE) | ||
f <- f[!endsWith(f, ".es.Rmd")] | ||
f <- f[!endsWith(f, ".pt.Rmd")] | ||
ig <- scan (file.path (devguide_path (), "inst", "WORDLIST"), | ||
what = "", | ||
quiet = TRUE) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This removes noise by around 1/3 in the es version:
ap <- available.packages () [, 1] | |
ig <- c (ig, ap) | |
ig <- scan (file.path (devguide_path (), "inst", "WORDLIST"), | ||
what = "", | ||
quiet = TRUE) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ig <- c (ig, ap) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do need to address the noise issue, and suspect the only way to do that would be to have two separate WORDLIST
files. I do not, however, know how you generate the single one currently included here?
No description provided.