Skip to content

Commit

Permalink
feat(rule): preferred alternatives - world wide web
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Mar 31, 2024
1 parent 3d365d0 commit a242035
Show file tree
Hide file tree
Showing 3 changed files with 6 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 @@ -15,3 +15,4 @@ swap:
chat ?bot?: chatbot
open-source: open source
(?:cell ?phone|smart ?phone): phone|mobile phone
World Wide Web: web
3 changes: 3 additions & 0 deletions test/fixtures/PreferredAlternatives/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ I contributed a new feature to an open-source project.
<!-- phone -->
Have you seen my cell phone?
My smartphone is running low on battery.

<!-- World Wide Web -->
I'd better search the World Wide Web for a new recipe.
3 changes: 2 additions & 1 deletion test/snapshots/PreferredAlternatives.log
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ test.md:23:16:Prim.PreferredAlternatives:Prefer using 'antivirus' over 'anti-vir
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: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'.
test.md:33:4:Prim.PreferredAlternatives:Prefer using 'phone' or 'mobile phone' over 'smartphone'.
test.md:36:23:Prim.PreferredAlternatives:Prefer using 'Web' over 'World Wide Web'.

0 comments on commit a242035

Please sign in to comment.