Rule Source
This rule comes from: https://github.com/mesosphere/dcos-docs-site
Rule Definition
---
extends: existence
message: 'Punctuation should be inside the quotes.'
level: warning
nonword: true
tokens:
- '"[^"]+"[.,?]'
- "'[^']+'[.,?]"
This rule enforces a common typographical convention where certain punctuation marks (periods, commas, and question marks) should be placed inside quotation marks rather than outside them. This convention is standard in American English and helps maintain consistency and readability in written content.
The proper placement of punctuation in relation to quotation marks is a subtle but important aspect of professional writing. Incorrect placement can make text appear unprofessional and can indicate inconsistent adherence to style guidelines.
❌ Incorrect (will be flagged):
✓ Correct:
The rule works with both single and double quotes, catching instances where periods, commas, or question marks are incorrectly placed outside the closing quotation mark.
This rule comes from: https://github.com/mesosphere/dcos-docs-site
---
extends: existence
message: 'Punctuation should be inside the quotes.'
level: warning
nonword: true
tokens:
- '"[^"]+"[.,?]'
- "'[^']+'[.,?]"