Merge branch 'Automattic:master' into master

This commit is contained in:
Andrew Dunbar 2025-01-30 11:48:45 +07:00 committed by GitHub
commit 4729aaee4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 129 additions and 1 deletions

30
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View file

@ -0,0 +1,30 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Platform**
What platform has the issue? Is it in Obsidian, Neovim, or Visual Studio Code? Something else?
**Additional context**
Add any other context about the problem here.

View file

@ -0,0 +1,20 @@
---
name: Report Grammatical Error
about: If a grammatical error is not found by Harper, let us tus now
title: ''
labels: enhancement, harper-core, linting
assignees: ''
---
## Description
Give a detailed description of the grammatical error Harper should be able to find.
## Resources
If there are any resources online we can reference that described grammatical rules, let us know.
## Examples
Please provide at least three examples of the grammatical error in real text.

View file

@ -114,29 +114,107 @@ create_linter_for!(
SequencePattern::default()
.then(Box::new(EitherPattern::new(vec![
Box::new(WordSet::all(&[
"Absolution",
"Admission",
"Alaska",
"Anzac",
"ANZAC",
"Arbor",
"Armistice",
"Ascension",
"Australia",
"Ayurveda",
"Bastille",
"Bonifacio",
"Boxing",
"Canada",
"Career",
"Chewidden",
"Christmas",
"Class",
"Columbus",
"Commonwealth",
"D",
"Darwin",
"Discovery",
"Distaff",
"Dominion",
"Earth",
"Easter",
"Election",
"Emancipation",
"Empire",
"Evolution",
"Family",
"Father's",
"Fathers'",
"Flag",
"Forefathers'",
"Foundation",
"Freedom",
"Galentine's",
"Groundhog",
"Gypsy",
"Halloween",
"Independence",
"Invasion",
"Ivy",
"Jamhuri",
"Jubilee",
"Kamehameha",
"Kenyatta",
"Labor",
"Labour",
"Lady",
"Land",
"Lei",
"Madaraka",
"Mashujaa",
"May",
"Memorial",
"Merdeka",
"Midsummer",
"Midsummer's",
"Mother's",
"Mothers'",
"Nakba",
"Nevada",
"Occupation",
"Parents",
"Patrick's",
"Patriots'",
"Pi",
"Picrous",
"Pioneer",
"Presidents'",
"Remembrance",
"Republic",
"Restoration",
"Rizal",
"Roc",
"Rock",
"Seward's",
"Singles'",
"Statehood",
"Tax",
"Thanksgiving",
"Treason",
"Ulster",
"Valentine's",
"VE",
"VJ",
"VP",
"Veterans",
"Years"
"Victoria",
"Victory",
"Waffle",
"Waitangi",
"Wattle",
"White",
"Wren",
"Years",
"Year's",
"Youth",
])),
Box::new(
SequencePattern::default()