-
Notifications
You must be signed in to change notification settings - Fork 233
feat: correct lo and behold, and jack-o'-lantern #2185
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
base: master
Are you sure you want to change the base?
Conversation
|
It should be "Lo and behold" used to be in the predecessor to the current |
|
It seems that I need this correction in the web edition as I didn't make that mistake in the pr itself but just the title. That should be fixed now. |
Yes I only noticed that after I'd sent my comment. I also thought the spelling you included "jack o'lantern" was an error. So I checked all the major online dictionaries: American Heritage, Cambridge, Collins, Longman, OED, Oxford, and Merriam-Webster. Interestingly it's not in any of them except for Collins. Being in any one of them is sufficient IMHO. It makes me wonder about at some point marking dictionary entries somehow so that users can allow or block specific spellings or sets of spellings by authority etc. Just some observations (-: |
| "Use contraction when referring to `jack-o'-lanterns`", | ||
| "Corrects contraction of `jack o lanterns` to `jack o'lanterns` or `jack-o'-lanterns`", | ||
| LintKind::Punctuation | ||
| ), |
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.
Oh I only just realized. In phrase_corrections like this will create two settings that have to be enabled/disabled individually. One for the singular and one for the plural. If you move them to the newer phrase_set_corrections you can put them both together with just a single setting.
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.
That's super neat! I'll also have to update my previous rule(#1829) to that new correction style as well.
|
I got this one from the Associated Press's style guide originally. But agreed that we will want to start adding rule-sets as suggested in #1827 so users will be able to start to follow specific groups of rules. |
|
@lukasmwerner, is this ready for review? |
|
I'm still needing to do testcases but otherwise this is done. |
|
@lukasmwerner, it looks like most style guides recommend you always include hyphens in |
|
I haven't seen others but I was going off of AP style where they were using hyphenation. However, I was also going off of Wikipedia which states: 'A jack-o'-lantern (or jack o'lantern)'. But if that isn't a strong enough case I'm happy to remove those cases. |
|
I don't think the cases need to be removed. I just think they should all map to the hyphenated version. |
Description
I was drafting a blog post and realized that Harper was missing these corrections.
How Has This Been Tested?
WIP
Checklist