Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions harper-core/default_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3714,6 +3714,13 @@
"label": "A Some Time"
}
},
{
"Bool": {
"name": "CapitalizeOn",
"state": true,
"label": "Capitalize On"
}
},
{
"Bool": {
"name": "NakedEye",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
expr main [(capitalises off of), (capitalises off)]

let message "Did you mean `capitalises on`?"
let description "Corrects `capitalise off` to `capitalise on`."
let kind "Usage"
let becomes "capitalises on"
8 changes: 8 additions & 0 deletions harper-core/src/linting/weir_rules/CapitalizeOn/IseLemma.weir
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
expr main [(capitalise off of), (capitalise off)]

let message "Did you mean `capitalise on`?"
let description "Corrects `capitalise off` to `capitalise on`."
let kind "Usage"
let becomes "capitalise on"

test "Ads make money but it seems hard to capitalise off of secret collection" "Ads make money but it seems hard to capitalise on secret collection"
6 changes: 6 additions & 0 deletions harper-core/src/linting/weir_rules/CapitalizeOn/IsePast.weir
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
expr main [(capitalised off of), (capitalised off)]

let message "Did you mean `capitalised on`?"
let description "Corrects `capitalise off` to `capitalise on`."
let kind "Usage"
let becomes "capitalised on"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
expr main [(capitalising off of), (capitalising off)]

let message "Did you mean `capitalising on`?"
let description "Corrects `capitalise off` to `capitalise on`."
let kind "Usage"
let becomes "capitalising on"

test "curious if anybody is talking about it / capitalising off the new-found fame" "curious if anybody is talking about it / capitalising on the new-found fame"
test "... start capitalising off of it" "... start capitalising on it"
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
expr main [(capitalizes off of), (capitalizes off)]

let message "Did you mean `capitalizes on`?"
let description "Corrects `capitalize off` to `capitalize on`."
let kind "Usage"
let becomes "capitalizes on"

test "The browser capitalizes off of publishers/content providers" "The browser capitalizes on publishers/content providers"
9 changes: 9 additions & 0 deletions harper-core/src/linting/weir_rules/CapitalizeOn/IzeLemma.weir
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
expr main [(capitalize off of), (capitalize off)]

let message "Did you mean `capitalize on`?"
let description "Corrects `capitalize off` to `capitalize on`."
let kind "Usage"
let becomes "capitalize on"

test "A script to buy a certain cryptocurrency as fast as possible to capitalize off of Pump-and-Dump's." "A script to buy a certain cryptocurrency as fast as possible to capitalize on Pump-and-Dump's."
test "marketing companies wanted to capitalize off those events" "marketing companies wanted to capitalize on those events"
9 changes: 9 additions & 0 deletions harper-core/src/linting/weir_rules/CapitalizeOn/IzePast.weir
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
expr main [(capitalized off of), (capitalized off)]

let message "Did you mean `capitalized on`?"
let description "Corrects `capitalize off` to `capitalize on`."
let kind "Usage"
let becomes "capitalized on"

test "Notion has capitalized off of this, as well as every popular Chinese app ..." "Notion has capitalized on this, as well as every popular Chinese app ..."
test "Capitalized off the name recognition of the original project despite having no affiliation ..." "Capitalized on the name recognition of the original project despite having no affiliation ..."
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
expr main [(capitalizing off of), (capitalizing off)]

let message "Did you mean `capitalizing on`?"
let description "Corrects `capitalize off` to `capitalize on`."
let kind "Usage"
let becomes "capitalizing on"

test "splits it apart into distinct monolgoes, capitalizing off of the semi-structures format" "splits it apart into distinct monolgoes, capitalizing on the semi-structures format"
test "By capitalizing off the intermediary points -- each step of the way" "By capitalizing on the intermediary points -- each step of the way"
Loading