Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: add spell check for Spanish too #10

wants to merge 1 commit into from

Conversation

maelle
Copy link
Contributor

@maelle maelle commented Mar 1, 2024

No description provided.

@maelle maelle requested a review from mpadge March 1, 2024 14:32
@maelle
Copy link
Contributor Author

maelle commented Mar 1, 2024

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)

Copy link
Contributor

@mpadge mpadge Mar 4, 2024

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:

Suggested change
ap <- available.packages () [, 1]
ig <- c (ig, ap)

ig <- scan (file.path (devguide_path (), "inst", "WORDLIST"),
what = "",
quiet = TRUE)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ig <- c (ig, ap)

Copy link
Contributor

@mpadge mpadge left a 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants