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

[feature request] Generate list of misspelled words #9

Open
dwcramer opened this issue Sep 28, 2014 · 2 comments
Open

[feature request] Generate list of misspelled words #9

dwcramer opened this issue Sep 28, 2014 · 2 comments

Comments

@dwcramer
Copy link

It would be convenient if middleman-spellcheck also generated at the end a deduplicated list reporting all the words that had been flagged as misspelled. Say you used "Heroku", "PredicateFactory", and "changeListener" throughout your pages and these are words you'd like to skip, but you also had a few words you genuinely misspelled.

["Heroku","PredicateFactory","changeListener","signifigant"]

I then take my list, prune any genuine misspellings, and add the rest to my allow: list in config.rb. This is the equivalent of doing something like:

bundle exec middleman build | grep "misspell" | sort | uniq | cut -d"'" -f2 | sed 's/\(.*\)/\"\1\"/' | tr "\\n" "," | sed 's/\(.*\),$/[\1]/'
@wkoszek
Copy link
Contributor

wkoszek commented Nov 30, 2015

@dwcramer we've added an ability to "whitelist" the words in the current version of middleman. You can add all of the white-listed words to a file, and those won't be reported as misspelled. Also, you can add a list of whitelisted words to front-matter.

Do you think it'd be enough for you and we could close this bug report?

@dwcramer
Copy link
Author

dwcramer commented Dec 1, 2015

That's cool that you can put the whitelist in other places. My request was about generating a deduplicated list of words that should be whitelisted (assuming you've fixed all the genuine misspellings and want to eliminate the noise). Perhaps piping through grep, sort, and uniq is the best way after all.

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

No branches or pull requests

2 participants