From bb84f78f490d598280ddd3a56099050288eb17e2 Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Fri, 14 Jun 2024 15:37:52 +0100 Subject: [PATCH] add --- styles/custom/LatinAbbreviations.yml | 7 +++++++ styles/custom/Repitition.yml | 2 ++ styles/custom/Typos.yml | 8 ++++++++ 3 files changed, 17 insertions(+) diff --git a/styles/custom/LatinAbbreviations.yml b/styles/custom/LatinAbbreviations.yml index ff3962fb88c..eb49fe7add9 100644 --- a/styles/custom/LatinAbbreviations.yml +++ b/styles/custom/LatinAbbreviations.yml @@ -8,3 +8,10 @@ swap: - i.e.: that is - etc.: and so on - N.B.: Note + +edit: + - 's/e.g./for example/g' + - 's/i.e./for example/g' + - 's/i.e./that is/g' + - 's/etc./and so on/g' + - 's/N.B./Note/g' diff --git a/styles/custom/Repitition.yml b/styles/custom/Repitition.yml index fcaceeb10d4..afd02730433 100644 --- a/styles/custom/Repitition.yml +++ b/styles/custom/Repitition.yml @@ -8,3 +8,5 @@ nonword: true tokens: - '\b(\w+)\s+\1\b' +edit: + - 's/\b(\w+)\s+\1\b/\1/' diff --git a/styles/custom/Typos.yml b/styles/custom/Typos.yml index 6e449598033..06cf72fde3f 100644 --- a/styles/custom/Typos.yml +++ b/styles/custom/Typos.yml @@ -9,3 +9,11 @@ swap: - seperate: separate - occured: occurred - untill: until + +edit: + - 's/teh/the/g' + - 's/recieve/receive/g' + - 's/definately/definitely/g' + - 's/seperate/separate/g' + - 's/occured/occurred/g' + - 's/untill/until/g'