Skip to content

Commit

Permalink
feat(rule): preferred alternatives - phone
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Mar 31, 2024
1 parent a785ff1 commit af3fdb2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions Prim/PreferredAlternatives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ swap:
anti-virus: antivirus
chat ?bot?: chatbot
open-source: open source
(?:cell ?phone|smart ?phone): phone|mobile phone
4 changes: 4 additions & 0 deletions test/fixtures/PreferredAlternatives/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ She used a chat bot to proofread her paper.

<!-- open-source -->
I contributed a new feature to an open-source project.

<!-- phone -->
Have you seen my cell phone?
My smartphone is running low on battery.
4 changes: 3 additions & 1 deletion test/snapshots/PreferredAlternatives.log
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ test.md:17:12:Prim.PreferredAlternatives:Prefer using 'antimalware' over 'anti-m
test.md:20:36:Prim.PreferredAlternatives:Prefer using 'antispyware' over 'anti-spyware'.
test.md:23:16:Prim.PreferredAlternatives:Prefer using 'antivirus' over 'anti-virus'.
test.md:26:12:Prim.PreferredAlternatives:Prefer using 'chatbot' over 'chat bot'.
test.md:29:35:Prim.PreferredAlternatives:Prefer using 'open source' over 'open-source'.
test.md:29:35:Prim.PreferredAlternatives:Prefer using 'open source' over 'open-source'.
test.md:32:18:Prim.PreferredAlternatives:Prefer using 'phone' or 'mobile phone' over 'cell phone'.
test.md:33:4:Prim.PreferredAlternatives:Prefer using 'phone' or 'mobile phone' over 'smartphone'.

0 comments on commit af3fdb2

Please sign in to comment.