Skip to content

Commit

Permalink
Address "one" for indefinite article rule
Browse files Browse the repository at this point in the history
  • Loading branch information
claydugo committed Jan 6, 2025
1 parent f6f5784 commit 5e96304
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions harper-core/src/linting/an_a.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ fn starts_with_vowel(word: &[char]) -> bool {
[] | ['u', 'k', ..]
| ['e', 'u', 'p', 'h', ..]
| ['e', 'u', 'g' | 'l' | 'c', ..]
| ['o', 'n', 'e']
| ['o', 'n', 'c', 'e']
) {
return false;
Expand Down
1 change: 1 addition & 0 deletions harper-core/tests/run_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ create_test!(chinese_lorem_ipsum.md, 2);
create_test!(obsidian_links.md, 2);
create_test!(issue_267.md, 0);
create_test!(proper_noun_capitalization.md, 2);
create_test!(article_usage.md, 0);
1 change: 1 addition & 0 deletions harper-core/tests/test_sources/article_usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The total number of pixels in the image pertains to a one channel image.

0 comments on commit 5e96304

Please sign in to comment.