From a2420358db431541a806c8de09ff3a3fc5dc926f Mon Sep 17 00:00:00 2001 From: Naiyer <19614213+naiyerasif@users.noreply.github.com> Date: Sun, 31 Mar 2024 11:57:42 +0530 Subject: [PATCH] feat(rule): preferred alternatives - world wide web --- Prim/PreferredAlternatives.yml | 1 + test/fixtures/PreferredAlternatives/test.md | 3 +++ test/snapshots/PreferredAlternatives.log | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Prim/PreferredAlternatives.yml b/Prim/PreferredAlternatives.yml index 4e4ad99..23d506e 100644 --- a/Prim/PreferredAlternatives.yml +++ b/Prim/PreferredAlternatives.yml @@ -15,3 +15,4 @@ swap: chat ?bot?: chatbot open-source: open source (?:cell ?phone|smart ?phone): phone|mobile phone + World Wide Web: web diff --git a/test/fixtures/PreferredAlternatives/test.md b/test/fixtures/PreferredAlternatives/test.md index f66c2e7..414ee42 100644 --- a/test/fixtures/PreferredAlternatives/test.md +++ b/test/fixtures/PreferredAlternatives/test.md @@ -31,3 +31,6 @@ I contributed a new feature to an open-source project. Have you seen my cell phone? My smartphone is running low on battery. + + +I'd better search the World Wide Web for a new recipe. diff --git a/test/snapshots/PreferredAlternatives.log b/test/snapshots/PreferredAlternatives.log index 34c1d19..79011f1 100644 --- a/test/snapshots/PreferredAlternatives.log +++ b/test/snapshots/PreferredAlternatives.log @@ -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'. \ No newline at end of file +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'. \ No newline at end of file